Hick
Hick

Reputation: 36404

Android Achartengine: Having multiple coloured points on a line graph of a different colour?

I'm using Android AchartEngine to create my graph.

As of now, I'm able to render a time series graph, but Achartengine forces the line graphs to have consistent colour. What I want is a separate colour for the lines joining the data points, while the data points can be of any colour that I assign to.

How do I do this? if I use different datasets/renders, then they will all render different coloured lines.

I want something similar to a scatter graph overlapping on a line graph.

Upvotes: 0

Views: 923

Answers (1)

Dan D.
Dan D.

Reputation: 32391

You can build an XY combined chart with one line chart and one scatter chart. Each would have a separate dataset and renderer, but the points would be similar.

An example for such a chart is available here.

Upvotes: 1

Related Questions