Telerik UI for Windows Phone by Progress

Palette Entry

Each palette contains PaletteEntries which expose the following properties:

  •  Fill
  •  Stroke
  •  AdditionalFill
  •  AdditionalStroke

Fill and Stroke are the most commonly used properties which affect most of the series in RadChart. The other two are more specific and are not relevant for all types of series. In the OhlcSeries the properties Open and Close define two types of sticks, depending on which of these properties has a bigger value. One of these types takes its color from Stroke and the other - from AdditionalStroke. Similarly the AdditionalFill property affects the CandlestickSeries.

Here is an example of how to use the AdditionalFill and AdditionalStroke properties in CandlestickSeries:

CopyXAML
<chart:RadCartesianChart>

  <chart:RadCartesianChart.Palette>
    <chart:ChartPalette>
      <chart:ChartPalette.GlobalEntries>
        <chart:PaletteEntry Fill="#FF1FAFD3" Stroke="#FF1FAFD3" AdditionalFill="#FF01FFFF" AdditionalStroke="#0055BF"/>
        <chart:PaletteEntry Fill="#FFC32E0A" Stroke="#FFC32E0A" AdditionalFill="#FFE85F2E" AdditionalStroke="#7D1A00"/>
      </chart:ChartPalette.GlobalEntries>
    </chart:ChartPalette>
  </chart:RadCartesianChart.Palette>

  <chart:RadCartesianChart.HorizontalAxis>
    <chart:CategoricalAxis/>
  </chart:RadCartesianChart.HorizontalAxis>
  <chart:RadCartesianChart.VerticalAxis>
    <chart:LinearAxis/>
  </chart:RadCartesianChart.VerticalAxis>

  <chart:CandlestickSeries>
    <chartEngine:OhlcDataPoint Category="Mon" Open="9" High="10" Low="7" Close="8"/>
    <chartEngine:OhlcDataPoint Category="Tue" Open="8.5" High="11" Low="8" Close="10"/>
    <chartEngine:OhlcDataPoint Category="Wed" Open="9" High="10" Low="7" Close="8"/>
    <chartEngine:OhlcDataPoint Category="Thu" Open="8" High="11" Low="8" Close="10"/>
    <chartEngine:OhlcDataPoint Category="Fri" Open="8" High="9.5" Low="7.5" Close="8.5"/>
  </chart:CandlestickSeries>

  <chart:CandlestickSeries>
    <chartEngine:OhlcDataPoint Category="Mon" Low="1" High="5" Open="2" Close="4"/>
    <chartEngine:OhlcDataPoint Category="Tue" Low="3" High="7" Open="6" Close="4"/>
    <chartEngine:OhlcDataPoint Category="Wed" Low="3" High="6" Open="4" Close="5"/>
    <chartEngine:OhlcDataPoint Category="Thu" Low="3" High="7" Open="6" Close="4.5"/>
    <chartEngine:OhlcDataPoint Category="Fri" Low="3" High="7" Open="5.5" Close="4"/>
  </chart:CandlestickSeries>

</chart:RadCartesianChart>

Here is a snapshot of the example:

radchart-palettes-paletteentries-ohlc