SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and now iOS Charting & Android Chart Components

Welcome to the SciChart Community Forums!

Please use the forums below to ask questions about SciChart. Take a moment to read our Question asking guidelines on how to ask a good question and our support policy

We also have a tag=SciChart on Stackoverflow.com where you can earn rep for your questions!

0
0

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

Version
2.1.0.639
  • You must to post comments
0
0

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

  • You must to post comments
0
0

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 😉

  • Yura Khariton
    Hi Per. Well it should be there. Are you sure that you use PieSegment class provided by SciChart ( com.scichart.charting.visuals.renderableSeries.PieSegment )?
  • You must to post comments
0
0

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

Images
  • Yura Khariton
    Have you tried to set Value property? Xamarin binding generator wraps setValue() and getValue() and creates C# property from these two methods with appropriate getter and setter.
  • You must to post comments
0
0

Hi
Can’t get it to update by just changing the Value property on the PieSegment.

Regards
Per

  • Yura Khariton
    Well as I know it should work – we use Value property in our demo application for Xamarin. So can you send a project which reproduces this issue to us and we’ll take a look on it.
  • You must to post comments
0
0

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

0
0

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

  • You must to post comments
0
0

Thanks
Now it’s working 🙂

/Per

  • You must to post comments
Showing 7 results
Your Answer

Please first to submit.