Hi,
I have a weird issue with chart... the legend colors didn't match the line color on chart, Please check the attached picture
I have a weird issue with chart... the legend colors didn't match the line color on chart, Please check the attached picture
<
telerik:RadChart
DataContext
=
"{Binding}"
telerik:Theming.Theme
=
"Office_Blue"
HorizontalAlignment
=
"Left"
Loaded
=
"RadChart1_Loaded"
Name
=
"radChart1"
VerticalAlignment
=
"Top"
>
<
telerik:RadChart.DefaultView
>
<
telerik:ChartDefaultView
ChartLegendPosition
=
"Top"
>
<!--<
telerik:ChartDefaultView.ChartTitle
>
<
telerik:ChartTitle
>CDC growth chart</
telerik:ChartTitle
>
</
telerik:ChartDefaultView.ChartTitle
>-->
<
telerik:ChartDefaultView.ChartLegend
>
<
telerik:ChartLegend
x:Name
=
"PrimaryLegend"
Header
=
"Click on percentile to hide/show:"
LegendItemMarkerShape
=
"Square"
LegendItemStyle
=
"{StaticResource CustomLegendItemStyle}"
/>
</
telerik:ChartDefaultView.ChartLegend
>
<
telerik:ChartDefaultView.ChartArea
>
<
telerik:ChartArea
EnableAnimations
=
"False"
Padding
=
"5,10,20,5"
LabelFormatBehavior
=
"None"
LegendName
=
"PrimaryLegend"
FontSize
=
"10"
>
<
telerik:ChartArea.PaletteBrushes
>
<
SolidColorBrush
Color
=
"Red"
/>
<
SolidColorBrush
Color
=
"LightGray"
/>
<
SolidColorBrush
Color
=
"LightGray"
/>
<
SolidColorBrush
Color
=
"LightGray"
/>
<
SolidColorBrush
Color
=
"LightGray"
/>
<
SolidColorBrush
Color
=
"LightGray"
/>
<
SolidColorBrush
Color
=
"LightGray"
/>
<
SolidColorBrush
Color
=
"LightGray"
/>
<
SolidColorBrush
Color
=
"LightGray"
/>
<
SolidColorBrush
Color
=
"LightGray"
/>
<
SolidColorBrush
Color
=
"LightGray"
/>
<
SolidColorBrush
Color
=
"LightGray"
/>
<
SolidColorBrush
Color
=
"LightGray"
/>
<
SolidColorBrush
Color
=
"LightGray"
/>
<
SolidColorBrush
Color
=
"LightGray"
/>
<
SolidColorBrush
Color
=
"LightGray"
/>
</
telerik:ChartArea.PaletteBrushes
>
<
telerik:ChartArea.AxisY
>
<
telerik:AxisY
ExtendDirection
=
"None"
/>
</
telerik:ChartArea.AxisY
>
</
telerik:ChartArea
>
</
telerik:ChartDefaultView.ChartArea
>
</
telerik:ChartDefaultView
>
</
telerik:RadChart.DefaultView
>
<
telerik:RadChart.SeriesMappings
>
.............................................................
<
telerik:RadChart
>