I am binding my chart to an ObservableCollection that consists of many XYDataSeries. When I create and add the XyDataSeries, I set the SeriesName and Stroke properties. The data shows on the chart. I have the following Legend Template:
<DataTemplate x:Key="LegendItemTemplate" DataType="s:SeriesInfo">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<CheckBox Grid.Column="0"
Margin="5,0"
HorizontalAlignment="Left"
VerticalAlignment="Center"
Foreground="{StaticResource BlackBrush}"
Content="{Binding SeriesName}"
IsChecked="{Binding RenderableSeries.IsVisible, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
Visibility="{Binding LegendData.ShowVisibilityCheckboxes, RelativeSource={RelativeSource AncestorType=s:SciChartLegend}, Converter={StaticResource VisibleWhenTrueConverter}}" />
<xctk:ColorPicker Grid.Column="2" x:Name="cpPalette"
ColorMode="ColorPalette" VerticalAlignment="Center"
SelectedColor="{Binding RenderableSeries.Stroke, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Height="25" Width="40" />
</Grid>
</DataTemplate>
However, when I change the colour using the Colorpicker, my charts series are not updated (ie, changing colour)
- Craig Muckleston asked 6 years ago
- You must login to post comments
I believe this issue was solved via a support ticket – problem in your own code. Can you confirm?
Best regards
Andrew
- Andrew Burnett-Thompson answered 6 years ago
- You must login to post comments
Please login first to submit.