0

I want to display one bar chart on top of another one.

Reason:

I am showing a base consumption on a certain day, but also the overall value.

I don't want a bar chart next to another but on top of one.

So far, I draw a line with pure d3.js on top of the bar, which brings a lot complexity and handling edge cases on my own.

enter image description here

The problem: I am using a multibarchart with nvd3.js, because I sometimes display more than one range of value in my chart. So for one or more series inside this chart, I want to display another bar chart on top.

Is there a better solution for this?

ohboy21
  • 4,259
  • 8
  • 38
  • 66
  • Do you want to make a stack chart http://bl.ocks.org/mbostock/3886208 – Cyril Cherian Sep 08 '15 at 14:25
  • You can do a stack bar chart with nvd3 as well. This is what I would suggest. – James McShane Sep 09 '15 at 20:01
  • But what happens when I want to show two bars next to each other, and, one on top of each other each? So I have two different values each day, and I want to show a baseload on top of each bar for each day... – ohboy21 Sep 10 '15 at 07:15

0 Answers0