b-b
b-b

Reputation: 25

NVD3: Force Bar + Line Chart to use same axis

Does anyone have a simple way to force both a line and bar chart to use the same Y axis in an NVD3 chart? When starting with the following, they take Y1 and Y2.

http://nvd3.org/ghpages/linePlusBar.html

If left to my own devices, I would suspect I should adapt linePlusBarChart.js, but it'll take some fumbling around as I learn the syntax / methods. Any shortcuts are welcome.

Upvotes: 0

Views: 1264

Answers (1)

b-b
b-b

Reputation: 25

Looks like I was using the wrong model. A better starting point is this: http://www.labtsmith.com/nvd3/examples/multiChart.html

Upvotes: 0

Related Questions