Android - chart color ignored for certain values


#1

I have a chart with three series with a DateTimeAxis on the y Axis. Coloring works fine for the three series.

However, I’m trying to reverse the order on the y axis by adding data points with negative milliseconds (I checked one of the values and it corresponds to a date in 1925). This makes the chart ignore the line colors I’m setting and use default line colors.

I tried charting both negative and positive values and the positive ones showed with the correct colors, while the negative values (the dates with the negative millis) show with a different color.

How do I make this work with charting dates before Epoch?


#2

Here’s how to make this work:

series.getStyle().setLineColorBelowBaseline(yourColorHere);