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