问题标签 [jqplot]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
javascript - JQPlot饼图抛出“无法获取属性'0'的值:对象为空或未定义”错误
我正在使用基于 JQuery 的图表库 jqPlot(以及其中的饼图插件)来生成一个非常基本的饼图。它在 FF 等中运行良好,但(惊喜!)在 IE 中不行。在 IE 中,它实际上加载正常并且看起来不错,但是一旦我将鼠标移到图表上,它就会引发以下错误:
无法获取属性“0”的值:对象为空或未定义
我设置一切的方式非常简单:
我还应该提到我正在使用包含标签线的修改后的饼图插件,但即使使用常规的饼图插件我也会遇到这个问题。这可以在这里找到:http: //blog.statscollector.com/line-labels-for-the-pie-chart-in-jqplot/
有没有使用过这个库的人遇到过这样的事情?任何帮助将不胜感激。谢谢。
javascript - 无法定位画布元素,或将它们注册为悬停
我希望这看起来不太不透明:
我正在使用 jqPlot 制作条形图。沿着图表的 x 轴,我试图让它当您将鼠标悬停在每个条形的标签上时,它将在条形上显示更多信息。
但是,这些标签似乎被画布标签“覆盖”了,浏览器无法识别我将鼠标悬停在元素上。我在跨度上尝试了一个标题,以及 jquery 鼠标悬停。没有什么。它就在那里,它可以悬停在上面,但它只是被画布视为“下方”。有什么解决办法吗?
请求的 HTML ......有点难看:
javascript - How to animate diagrams with jQuery and jQplot (updating data)
I am "animating" diagrams over time by changing the data and redrawing them.
Now after some time I will change the data in some way and want to update the diagram. The following solution works:
Bit this is a complete redraw. With lots of data and a short intervall jQPlot takes much memory and the diagram is flickering.
How to do this correct?
The solution using the redraw-function for me only draws the old diagram:
jquery - jqplot using a external .js file for the theme?
It's possible to have a external .js file with the theme configs for jqplot, instead of everytime i put a graph on a page have to put all the theme params?
jqplot - IE中使用jqplot的透明网格
我正在使用 jqplot 来显示条形图和饼图。我想在没有网格线的情况下显示它们。所以,我插入了以下行。
它在 IE 中不起作用,但在 Firefox 中显示时没有网格线。请帮帮我。
jquery - jqplot 从不可见的线条中删除突出显示
我有一个带有以下选项的 jQplot:
我希望在隐藏一行时禁用突出显示。目前,如果您将鼠标悬停在不可见的数据点上,荧光笔仍会显示。有没有办法做到这一点?
jquery - 一页上有 30 个 jQuery 插件实例。优化?
我有一个使用 PHP 生成的日历,显示标准月视图。在每天的单元格内,有一个jqPlot实例,它加载了一系列点。
每天都有自己的图表,因此 31 天我需要 31 个图表。Firefox 有明显的 1-2 秒延迟。在 IE 中,它是 6 或 7 秒长。这是所有客户端渲染时间。
我 100% 确信有一种更有效的方法可以更快地加载这些图表。
下面是我正在做的一个粗略的 PHP 脚本。
自然地,这一切都重复了大约 30 次,并让客户端挂断了几秒钟。
jquery - 多系列条形图显示点标签
我需要在每个栏中显示自定义标签。这是一个使用 jqplot 的多系列条形图。我在这里粘贴我的代码。此代码不起作用。向我展示了一个单独的栏而不是多系列。请帮我..
jquery - jqplot 饼图未正确呈现。
获取日志消息:饼图的直径太小,无法渲染。
然后,似乎当我在我得到的页面内悬停或单击时: Uncaught TypeError: Cannot read property '0' of undefined
这是它进入的div:
这是我在页面上得到的:
如果您需要更多详细信息,请告诉我。