Jump to content
Software FX Community

Changing ChartType Dynamically


Recommended Posts


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.

Link to comment
Share on other sites

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...