MPAndroidChart icon indicating copy to clipboard operation
MPAndroidChart copied to clipboard

Added RoundedBarChartRenderer & RoundedHorizontalBarChartRenderer for Rounded corner Bar Chart

Open katara-mohini opened this issue 2 years ago • 1 comments

… corner radius positive/negative Bar Chart

PR Checklist:

  • [✓ ] I have tested this extensively and it does not break any existing behavior.
  • [✓ ] I have added/updated examples and tests for any new behavior.
  • [✓ ] If this is a significant change, an issue has already been created where the problem / solution was discussed: N/A

PR Description:

  1. Added RoundedBarChartRenderer for vertical Positive/Negative BarChart with customised rounded corners.
  2. RoundedHorizontalBarChartRenderer for horizontal BarChart with customised rounded corners.

Added Feature:

This PR is for BarChartRenderer and HorizontalBarChartRenderer customisation.

PR has to be merged:

So that users can customise BarChart corners according to their requirements.

katara-mohini avatar Oct 04 '23 12:10 katara-mohini

There is crash when we use FloatArray for Y values.

Crash happens here, as we don't have y, instead yVals

  if ((dataSet.getEntryForIndex(j / 4).y < 0 && roundedNegativeDataSetRadius > 0)) {

This is only needed to make it perfect

Paget96 avatar Jun 21 '24 16:06 Paget96