GrapeCity / ComponentOne-Xamarin-Samples

1 stars 1 forks source link

Aviable Method for output of number of points in a ChartSeries #1

Open JuRi-2020 opened 4 years ago

JuRi-2020 commented 4 years ago

Hello,

I am testing your plugin and have a question. I'm downloaded the package C1.Xamarin.Forms.Chart. Is there any method to output the number of points which are saved in a ChartSeries?

I'm looking forward for an answer.

Kind Regards JuRi-2020

sassy224 commented 4 years ago

Hi,

You can get the number of points in ChartSeries using event SymbolLoading, each time the event is called, a point is being created for a series.

Sample code

flexChart.ItemsSource = ChartSampleFactory.CreateEntityList();
flexChart.Series[0].SymbolLoading += GettingStartedSample_SymbolLoading;

Hope it helps. Can you tell why would you want to get the number of points in a ChartSeries?

JuRi-2020 commented 4 years ago

Hello and thanks for the fast answer.

I like to add points and if there are more than a spezific number, than I would like to remove the first one.

Kind Regards JuRi-2020