javascript - AmCharts split lines -
i have stacked bar chart negative values
if possible split each line category? horizontally!
tnx
you can add dimension data, , create graph object within graphs
array defining , how should display.
using open
property, along valuefield
allows create new bar within stacked collection own open/close values. assuming mean "splitting" line horizontally.
in dataprovider array, can add these new open/close values individual objects, , use field names instruct graph
object on how display them.
// individual dataprovider object { "age": "0-4", "male": -5.0, "female": 4.8, "other_low": -2, "other_high": 2 } // accompanying graph object { "fillalphas": 1, "linealpha": 0.2, "type": "column", "openfield": "other_low", "valuefield": "other_high", "title": "other", "labeltext": "[[open]]% - [[value]]%", "labelposition": "middle", "balloonfunction": function(item) { return item.category + ": " + math.abs(item.values.value) + "%"; }
Comments
Post a Comment