MPAndroidChart.Xamarin
MPAndroidChart.Xamarin copied to clipboard
Working examples anywhere?
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.
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.