使用 Spider 插件(或使用背景图像?)更改 Flot 中的标签位置
我目前正在制作一个依赖于 Flot 的网络应用程序,特别是“Spider”插件 - 可在 jumware[1] 上找到。然而,每个系列都有 10 种不同类型的数据,因此有 10 个不同的数据点,每个数据点都有一个标签。不幸的是,该插件不能很好地处理标签 - 我要么必须将标签设置得太小,以至于无法阅读它们,要么将标签设置得足够大,可以阅读,但会使图表变得混乱。
我尝试在 div 上设置背景图像,但这在所有其他浏览器中都有效,但在使用 IE 和 Excanvas 时是一个已知问题。[2]当然,我需要这个应用程序能够与所有浏览器一起使用,并且因为它不代表我的个人网站 - 我真的无法阻止 IE 用户。
所以我的问题基本上是 -
- 有没有办法移动流程图中的标签,或者将它们全部删除并手动绘制?
- 或者,也许更容易 - 有人能破解 IE 中的 div/excanvas 错误吗?这将是完美的解决方案!
预先感谢各位!
[1] http://www.jumware.com/Includes/jquery/ Flot/Examples/spider.html
[2] http://code.google.com/p/flot/问题/详细信息?id=125
I'm currently making a web app that relies upon Flot, and specifically the "Spider" plugin - available at jumware[1]. However I have 10 different types of data for each series, so there's 10 different datapoints each with a label. Unfortunately the plugin doesn't handle labelling so well - and I either have to set the labels so small you can't read them, or their large enough to read but clutter the diagram up.
I've tried setting a background image on the div, however that worked in all other browsers but is a known problem when using IE and Excanvas.[2] Naturally I need this app to be working with all browsers, and as it's not on behalf of my personal website - I can't really afford to block IE users.
So my question is basically -
- Is there a way of moving the labels in a flot diagram, or removing them all and drawing them manually?
- Or, perhaps more easily - does anyone have a hack around the div/excanvas bug in IE? This would be the perfect solution!
Thanks in advance guys!
[1] http://www.jumware.com/Includes/jquery/Flot/Examples/spider.html
[2] http://code.google.com/p/flot/issues/detail?id=125
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论