MPAndroidChart v3.0.0 Release Notes
Release Date: 2016-10-19 // over 7 years ago-
๐ This is a major release, with a few breaking changes. So please pay attention.
โก๏ธ Updates:
- The Integer
x-index
is dead. Intoducing: x-values (float
). Each entry now has anx
and ay
. - Pie/radar charts do not have a concept of X index anymore
- Unified XAxis/YAxis features and experience.
- Unified formatter interfaces for axes.
- ๐จ Major refactoring of the Highlight mechanism.
- ๐จ Refactored marker mechanism
- ๐จ Refactored legend entry mechanism
- Each dataset can now set its own legend form/size/etc.
- More demos
- ๐ Many minor bug fixes and improvements
๐ฅ Breaking changes / how to migrate:
- All dataset constructors have changed - they do not take an array of x-indices anymore.
- All entry constructors have changed - they take in an X and a Y.
- Pie and Radar chart entries now have their own classes. So exchange the Entry classes with
PieEntry
/RadarEntry
- ๐ If you have any old
startAtZeroEnabled
calls - these have been deprecated for a long time. Replace them withaxisMinimum
. - In general, all functions that accepted x-indices before, now accept an x-value, so you might have to adjust the names a little bit.
- โก๏ธ Where
OnChartValueSelectedListener
is implemented, update theonValueSelected
interface - Replace
drawSliceTextEnabled
withdrawEntryLabelsEnabled
- If you have a custom scatter shape - implement an
IShapeRenderer
, and put your rendering code in there - If you have a custom marker - consider subclassing
MarkerView
/MarkerImage
or implementingIMarker
. There are more options than before now... - ๐ If you have used
barSpace
before, move to usingbarWidth
- The Integer