Skip to content

MPAndroidChart 4.0.1

Latest

Choose a tag to compare

@PhilJay PhilJay released this 28 Sep 17:10
· 5 commits to master since this release

Fixes and small additions for MPAndroidChart 4.0. A drop-in update from 4.0.0: no API was removed or changed.

implementation("com.github.PhilJay.MPAndroidChart:MPChartLib:v4.0.1")
implementation("com.github.PhilJay.MPAndroidChart:MPChartCompose:v4.0.1") // only for Compose

Fixed

  • A tap inside a bar of a combined chart selects the bar instead of a nearby line point (#5207).
  • In a bar chart whose grouped data sets use different y axes, a tap selects the bar that was touched (#5292).
  • Limit line labels at the edge of the content area are no longer cut off (#5328).
  • Auto scaling also rescales a y axis that is disabled (#5258).
  • Charts can be built on a thread without a Looper, for example with an asynchronous layout inflater (#5241).
  • The default value formatter no longer rebuilds its number format when the number of decimals stays the same (#5217).

New

  • YAxis.labelRotationAngle rotates the y axis labels (#5213).
  • Pie entry labels and values with a line break are drawn as several lines (#5205).
  • PieChart.isRoundedSlicesReversed rounds the slice ends the other way around (#5206).
  • PieChart.isTransparentCircleClippedToSlices draws the translucent ring only over the slices, so the space between slices stays open (#5348).
  • chart.toBitmap(width, height) draws a chart at any size, also one that was never laid out, for example to export an image (#4664).

The guides cover all additions, and CHANGELOG.md lists every change.