开发者

Can the jquery flot graph project handle discontinuous points

开发者 https://www.devze.com 2023-01-21 21:05 出处:网络
I have a requirement for a multiple series line graph. I am looking at pure javascript solutions and feel flot looks like a good option.

I have a requirement for a multiple series line graph.

I am looking at pure javascript solutions and feel flot looks like a good option.

However the points along the line may not be continuous but I want the line to be joined.

ie

y [Jan Feb Mar Apr May Jun]

Series 1 [4 4 5 6 7] Series 2 [5 6 7 8 9 9]

Although there is no value for Series 1 March I want flot to draw a smooth line between Feb and Apr.

I would very much appreciate your help on thi开发者_JAVA技巧s.


In my experience with Flot, it will draw a smooth line between Feb and Apr, you don't need to do anything special for that. However, if there is no data for, say, January and February, then it will make a line that starts with March, which does look a little odd, but there's not really a good alternative (flot or otherwise) unless you extrapolate (which is riskier than interpolating).

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号