javascript - AmCharts split lines -


i have stacked bar chart negative values

enter image description here

if possible split each line category? horizontally!

code exemple

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) + "%"; } 

working codepen example


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -