AppDevNext / AndroidChart

A fork from dead upstream with a lot of merged pull requests from upstream. Including Espresso tests and screenshot tests
Other
113 stars 16 forks source link

Pass stack index to IValueFormatter.getFormattedValue() #152

Open Zarathustrius opened 1 year ago

Zarathustrius commented 1 year ago

Is it possible to overload/modify IValueFormatter.getFormattedValue() method and add one more argument - stack index (for the stacked BarChart)?

There's a for-loop in HorizontalBarChartRenderer.java which iterates through the stacks and calls getFormattedValue(), so it should be simple to pass the loop index variable to the method.

Thanks!

hannesa2 commented 1 year ago

Sure, it's possible. But someone should make a pull request