Search code examples
javascriptamcharts

How to Overlapping graphs in amChart3


enter image description here

Is it possible to implement it by programming as in the picture above?

I'm aleady using cluster false but graph is centered.


Solution

  • If I understand correctly, you want to have the red showing behind the blue bar? Or do you want to have another bar which is then with a dotted line?

    From the docus: https://www.amcharts.com/docs/v3/reference/amgraph/#clustered_property

    So depending on what you want to do you maybe have to calculate an entry on the same x-axis position (I guess it's a date) as the blue bar and then use clustered = false

    Also maybe you have to do it in a stacked way: https://www.amcharts.com/demos-v3/stacked-column-chart-v3/