I use the MPAndroid chart library to build a line chart, and I set the dynamic data to LineChart, but sometimes I get the data as a value of 0.0 for some indices, and I don't want to show 0.0 values for any index. How to skip indexes that have a value of 0.0.
ArrayList<Entry> entries = new ArrayList<>();
entries.add(new Entry(23.00f, 0));
entries.add(new Entry(40.00f, 1));
entries.add(new Entry(00.00f, 2));
entries.add(new Entry(00.00f, 3));
entries.add(new Entry(94.00f, 4));
entries.add(new Entry(20.00f, 5));
Now i get like this

But I would like to get something like this

Any idea on this?
thank
source
share