NDev
-
Posts
2 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by NDev
-
-
Hello,
I'm wondering how it's possible to change the charttype dynamically.For example:This would output a Pie chart as expected:<cfx:Chart Gallery="Pie" x:Name="KpiChart" Margin="2,2,2,2" Grid.Row="0" Grid.Column="1">
This would output a Line chart as expected:<cfx:Chart Gallery="Line" x:Name="KpiChart" Margin="2,2,2,2" Grid.Row="0" Grid.Column="1"> If I decide to change it during runtime such as:XAML be like:<cfx:Chart Gallery="Pie" x:Name="KpiChart" Margin="2,2,2,2" Grid.Row="0" Grid.Column="1">Code-Behind:KpiChart = new Chart { Gallery = Gallery.Line };It ignores that and uses a Pie chart.
If anyone has any suggestions or help that would be great. Thanks.
Changing ChartType Dynamically
in General
Posted
Resolved problem with help from ChartFX team.Solution:Not to use new Chart just to useKpiChart.Gallery = Gallery.Line;