line + scatter chart in nvd3
Asked Answered
A

3

7

Is it possible combine a line + scatter chart in nvd3.js without building a new model like is done with linePlusBarChart in the examples and code? Or is this the only way that you can combine chart types?

Anallese answered 19/12, 2012 at 18:54 Comment(1)
did you find any solution to the problem. I also need the same! Thanks.Keef
B
3

looke at this fiddle, gives you some idea

<code><a href="http://jsfiddle.net/7b48nzkm/">fiddle</a></code>
Brucie answered 30/9, 2014 at 8:35 Comment(2)
How do you compute the slope and intercept for regression?Spontoon
This was exactly the solution that I was looking for - draw horizontal lines on my scatterChart without converting it to multiChart. The fiddle link helped.Anastigmat
B
0

There's a scatterPlusLineChart model, but I couldn't get it to work well for my data. If you just want to add markers to a line chart, see Is an NVD3 Line Plot with Markers Possible?

Backplate answered 4/6, 2013 at 3:26 Comment(0)
R
0

I think you can do it by changing the style for the path and points(circle) in the line chart for different series.

Rother answered 24/10, 2013 at 3:33 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.