MPAndroidChart.Xamarin icon indicating copy to clipboard operation
MPAndroidChart.Xamarin copied to clipboard

Working examples anywhere?

Open asheragy opened this issue 7 years ago • 1 comments

Are there any working examples of this library? I am trying to get something like the example below working on xamarin.android.

https://github.com/PhilJay/MPAndroidChart/wiki/Getting-Started

The LineChart has a LineData member that is a get only property which is null, so you can't set any chart data. I worked around this by creating a subclass of LineChart to override the LineData property which returns a non-null instance, this just shows a chart with "no chart data available". Tried the invalidate() thing too but this is onCreate so it shouldn't matter.

asheragy avatar Jul 26 '17 22:07 asheragy

Not sure what the LineData property is for. Might just he there for a type safe way to get the data back out. Anyway. what your after is the Data property that's common to all chart types.

Silic0nS0ldier avatar Oct 07 '18 08:10 Silic0nS0ldier