AndroidCharts icon indicating copy to clipboard operation
AndroidCharts copied to clipboard

Does not work with negative numbers

Open whalemare opened this issue 9 years ago • 3 comments

whalemare avatar Apr 14 '16 05:04 whalemare

+1

int y = yCoordinateList.get(verticalGridNum - dataLists.get(k).get(i));

this line crashes, I guess looking for non-existing (negative) y coord

shineangelic avatar Apr 19 '16 23:04 shineangelic

using a BAD workaround, not to make the app crash:

try{ y = yCoordinateList.get(verticalGridNum - dataLists.get(k).get(i)); }catch (IndexOutOfBoundsException boh){ y = 0; }

shineangelic avatar Apr 19 '16 23:04 shineangelic

+1

onecoders avatar Aug 17 '20 01:08 onecoders