NVD3 Multi series line bar chart

90 Views Asked by At

So the current Nvd3 Line Bar Chart only allows 1 key for line and 1 key for bar. Is there a way to have multiple keys for line and bar, just like the standalone Line Chart and Bar Chart?

1

There are 1 best solutions below

0
Dave Miller On

You could use Multichart, then you'll have multiple columns with multiple lines. Take a look at the examples at: https://github.com/novus/nvd3/blob/master/examples/multiChart.html

For multiple lines, just add each key you need, as it's proposed on this post: how i can put more lines in Line Plus Bar Chart using nvd3.js?