SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, iOS Chart, Android Chart and JavaScript Chart Components
Hi
Is there a way to just change the values of the pie segments so it get updated on the donut chart.
If I remove and add the pie segments again it works, is this the correct way?
Also I can’t find any documentation around the donut for android/xamarin
regards
Per
Hi Robin,
Thanks for your inquiry.
Yes, it looks like that we didn’t update documentation after v2.1 release in which we’ve added donut and pie charts. I’ve created a task in our bug tracker for this issue.
Regarding updating PieSegment’s value – you can do this this with next code:
pieSegment.setValue(newValue);
Is this suitable for your needs?
Best regards,
Yura
Hi
Can’t find any setValue method in the Android API
Regards
Per
PS
Was logged in with Robin’s account and didn’t realized that until I posted 😉
Hi
Maybe I wasn’t clear enough.
I’m doing this in C# and Xamarin.
Using the nuget package SciChart.Android with version 2.1.0.748 on the android project
Looking in the object browser on PieSegment class I can’t find any setValue
Regards
Per
Hi
Can’t get it to update by just changing the Value property on the PieSegment.
Regards
Per
Hi
Which demo code is that? have downloaded the example code “SciChart_Xamarin_v2.1.0.639_SDK” but can’t see that there is any update of the values in that example
Regards
Per
Hi
Well I have no problem adding the PieSegments with values at start. But if I try to update the values in the pieSegements that I already created the chart isn’t updated even though I Invalidated the chart.
Is there something I’m doing wrong? Not really an expert on android only on C# and WPF
Regards
Per
Please login first to submit.