문제

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