Closed Fdde11 closed 4 years ago
@Fdde11 You can create multiple Lists of ValueDataEntry dynamically and apply them to the chart series. It means that you can create one list and map it to multiple series or you can create multiple lists of simple ValueDataEntry.
This is what I did, it worked for me.
private class CustomDataEntry extends ValueDataEntry {
CustomDataEntry(String x, Number[] value) {
super(x, value[0]);
for(int y=1;y<value.length;y++)
{
setValue("value"+(y+1), value[y]);
}
}
}
I was using a CustomDataEntry to show 4 series in a char, something like this:
but I now require to show a not fixed amount of series, so my char could have 2 or 5 or 'N' amount of series, how can I do this?