NDev Posted April 12, 2013 Report Share Posted April 12, 2013 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. Quote Link to comment Share on other sites More sharing options...
NDev Posted April 17, 2013 Author Report Share Posted April 17, 2013 Resolved problem with help from ChartFX team.Solution:Not to use new Chart just to useKpiChart.Gallery = Gallery.Line; Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.