ColorSet

Gets or Sets the collection of colors that will be used to color the DataPoints.

 

Type: String

Namespace: Visifire.Charts

Assembly:

Silverlight:

SLVisifire.Charts (in SLVisifire.Charts.dll)

WPF:

WPFVisifire.Charts (in WPFVisifire.Charts.dll)

Windows Phone:

SLWpVisifire.Charts (in SLWpVisifire.Charts.dll)

Windows 8:

Win8Visifire.Charts (in Win8Visifire.Charts.dll)

 

This attribute applies to:

 

Syntax:

<vc:Chart ColorSet="VisiGray">

 

</vc:Chart>

 

Below is the chart after setting ColorSet property in Chart.

 

colorset.jpg

 

 

Members: Here is the list of few built-in ColorSets available in Visifire.

 

Member name

Visifire1

Visifire2

VisiRed

VisiBlue

VisiGreen

VisiViolet

VisiGray

VisiAqua

VisiOrange

DarkShades

Caravan

Picasso

DullShades

SandyShades

SpiderWeb

CandleLight

Windows8 (available only for Windows 8 Chart)

 

 

How to override existing ColorSet?

 

ColorSets property is a collection of ColorSet which is defined in chart. One can create new ColorSet and add it into ColorSets.

As an example if you want to override Visifire2 ColorSet, create your own ColorSet and set the Id property of that ColorSet as Visifire. Then embedded ColorSet for Visifire will be overridden by your new ColorSet.

 

Example:

 

<vc:Chart ColorSet="Visifire2">

 

<vc:Chart.ColorSets>

                <vc:ColorSet Id="Visifire2">

                    <vc:ColorSet.Brushes>

                        <SolidColorBrush Color="#808000"></SolidColorBrush>

                        <SolidColorBrush Color="#d5935e"></SolidColorBrush>

                        <SolidColorBrush Color="#638090"></SolidColorBrush>

                        <SolidColorBrush Color="#405b45"></SolidColorBrush>

                        <SolidColorBrush Color="#5b5853"></SolidColorBrush>

                        <SolidColorBrush Color="#8f4b32"></SolidColorBrush>

                        <SolidColorBrush Color="#863901"></SolidColorBrush>

                        <SolidColorBrush Color="#6d6743"></SolidColorBrush>

                        <SolidColorBrush Color="#716820"></SolidColorBrush>

                        <SolidColorBrush Color="#7e6046"></SolidColorBrush>

                    </vc:ColorSet.Brushes>

                </vc:ColorSet>

            </vc:Chart.ColorSets>

.

.

.

</vc:Chart>

 

See Also: Setting Custom ColorSet from Managed Code

 

Remarks:

  1. The ColorSets defined in the above list are generated using ColorSets.xaml.

  2. ColorSet takes the name of the ColorSet element. This element must be defined within <vc:Chart.ColorSets> collection.

  3. The default ColorSet for CandleStick chart is CandleLight. You can override it by setting ColorSet property in DataSeries.

  4. The default ColorSet for Radar chart is SpiderWeb. You can override it by setting ColorSet property in DataSeries.