使用不同颜色设置绘图不同部分的背景颜色 jqplot
我想设置具有不同颜色的图表部分的背景颜色。并且还能够使轴刻度也可点击,特别是对于 jqplot 和 flot。我已经能够用 highcharts 做到这一点。你可以看看我做了什么: http://jsfiddle.net/fonpah/jPrvK/4/ 。如果有人可以用 jqplot 或 flot 做同样的事情,我将非常感激。 谢谢
i want to set the background color of portions of a graph with diffrent colors. and also to be able to make the axis ticks also clickable particularly for jqplot and flot. i have been able to do that with highcharts. you can have a look at what i did : http://jsfiddle.net/fonpah/jPrvK/4/ . i would really appreciate it if anyone can do thesame thing with jqplot or flot.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
flot 使画布可供您使用,因此您可以轻松地将代码从高图表示例翻译到那里。
有关详细信息,请参阅注释示例。
flot makes the canvas available to you, so you can easily translate your code from your high-charts example to there.
See the annotating example for details.
使用 Flot,使用 {fill=true} 选项可以非常轻松地绘制填充区域,例如:
lines: { show: true, fill: true, fillColor: "#98FB98" },
With Flot, it's very easy to draw fill area using the {fill=true} option e.g.:
lines: { show: true, fill: true, fillColor: "#98FB98" },