I have the following XAML and it doesn't change the ChartType. What am I missing here?
<Label Grid.Row="0" Grid.Column="0"
Content="Choose Chart Type:"/>
<ComboBox Grid.Row="0" Grid.Column="1"
x:Name="cbChartType"
SelectedItem="{Binding (Series).ChartType, ElementName=xamChartDrillDown}">
<ComboBoxItem >Bar</ComboBoxItem>
<ComboBoxItem >Pie</ComboBoxItem>
</ComboBox>
Thanks
Ganesh
Hello,
Did you check if the issue occurs in the latest service release - 2049? Let me know if you can resolve the issue with this.
Thanks,
We are using 9.2.20092.2023 and not sure whether its fixed in 2049. I did directly bind it to the combobox in our application. If I make View3D=false then everything is fine. You have to change the charttype atleast 3-5 times more and it will crash.
Hi Ganesh,
I was not able to encounter any crashes when testing the sample with the latest service release for version 9.2 (2049). Is there any specific steps I have to follow in order to reproduce the issue? There are couple of tweeks you can do in order to increase the overall performance - in the converter you can store the previous value of the combo in a string and return a new ChartType only when this value is not equal to the current one. Also you don't actually need to use the Tag property of the chart - you can directly bind the Series.ChartType to the SelectedItem.Content :
<igCA:Series ChartType="{Binding ElementName=combo,Path=SelectedItem.Content,Converter={StaticResource chartTypeConverter}}">
Let me know if you can resolve some of the issues with this information.
Hi Vlad, That seems work, but when I make it View3D and Animation (thats the requirement that we have it at present in our chart), it causes insufficient memory and crashes (try it for 2 - 3 times different chart types). I am attaching the sample with those changes and I hope thats the xamChart bug and can be fixed pretty quickly!.
Attached is a sample project showing how to bind the SelectedItem of the Combobox to the type of particular series in the chart. Let me know if this is what you are looking for and if you have any questions.