Вопрос

I need to have lines between the bullets on the same graph to be a diffrent color, i.e. if line is raising (going from bullet of smaller value to greater value) it needs to be green, if line is going down it needs to be red.

I have found one option of the AmChart graphs which is graph.negativeLineColor. This has similar concept but it change the color if line is higher or below 0 which is not what we need.

Or is there any other charts tool that could do that?

Это было полезно?

Решение

With 3.0 amCharts introduced a feature where you can change graph color at any point: http://www.amcharts.com/javascript-charts/line-chart-with-changing-color/

You need to set colors in your data and then specify lineColorField for your graph.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top