问题标签 [jqplot-highlighter]

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.

0 投票
3 回答
4781 浏览

jquery - 无法让 jqplot 荧光笔运行

我已经和 JQPlot 一起工作了一周左右,现在我正用头撞墙,试图让突出显示工作。我正在加载以下 CSS 和 .js 文件...

jquery.jqplot.min.css
jQueryCombined.css
...其他一些不相关的...

jquery-1.4.2.min.js
jquery-ui-1.8rc3.custom.min.js
jquery.tree.js
fancybox/jquery.fancybox-1.3.1.js
functions.js jquery.calendar
-widget.js
jquery.validate.min.js
validation-additional-methods.js
jquery.form.js
thickbox.js
jquery.jqplot.min.js
插件/jqplot.canvasTextRenderer.min.js
插件/jqplot.canvasAxisLabelRenderer.min.js
插件/jqplot.dateAxisRenderer.min.js
插件/jqplot.canvasAxisTickRenderer.min.js
插件/jqplot.highlighter.min.js
插件/jqplot.cursor .min.js
jquery.pstrength-min.1.2.js
jquery.qtip-1.0.0-rc3.min.js
fileuploader.js

这里是生成图表的 JS:

除了荧光笔之外的所有东西都绝对完美。谁能告诉我在启动并运行此功能时我做错了什么?

0 投票
1 回答
617 浏览

jquery - 具有 3 个值(而不是 2 个)的荧光笔( jquery-jqplot)

我正在使用 jquery 插件 jqplot。我有一个包含三个元素的元组,在图表上,元组的第一个元素是 xaxis,yaxis 是第二个元素。Highlighter 需要显示元组的 x、y 和第三个元素。就像是:

荧光笔显示:(1 , 2 , '28-May-11')第一点,(2,4,'30-May-11')第二点...

有任何想法吗?

0 投票
1 回答
133 浏览

jqplot - jqplot_how can I display the value at highlither in dateaxisrenderer?

I wanted to draw two line series on the time axis, like this:

but I knew that dateaxisrenderer needed the same date between line1 and line2, so I changed it to use the same dates, like this:

This solved that problem, but now I have a new problem.

The problem is that the line1's highlighter value is "2012-01-01, 1". Its original value is "2011-01-01, 1". I want to display the original value ("2011-01-01, 1") at the highlighter. How can I fix it?

0 投票
4 回答
19885 浏览

hover - jqplot 格式工具提示值

我想在 jqplot 中有一个工具提示悬停突出显示的东西。问题是我希望它在轴上提供更多细节。所以格式化程序应该不同。我无法让它显示秒数:

这里有一个 JS 文件!

我希望时间戳显示为小时:分钟:秒,这将是格式字符串“%H:%M:%S”或“%T”或“%X”。但是我该怎么做呢?

0 投票
2 回答
1909 浏览

javascript - jqplot 仅在一张图表上显示荧光笔

我有一个带有两条数据线的 jqplot 图表。只有一个应该启用荧光笔。我试过这个:

但不幸的是,这不起作用:荧光笔在第一行显示一个小空点,而它应该什么也不显示。

如何在一张图表上显示荧光笔而不在另一张图表上显示荧光笔?

0 投票
1 回答
2390 浏览

javascript - 在荧光笔 jqplot 中显示点标签

我在图表上有很多只有两个点的系列来模拟时间线。这些点有一个点标签。我想在荧光笔中显示该点标签的名称。我怎么做?

请看我的 JsFiddle http://jsfiddle.net/NVbjv/8/

我试图为每个系列添加一个荧光笔对象,并给它一个格式字符串。但是我怎样才能让它更有活力呢?

我也喜欢只在右下角的悬停框里显示时间。如何删除“,1”和“,2”?

0 投票
0 回答
749 浏览

jquery - 点击时的 jQplot 工具提示

我在http://www.jqplot.com/tests/cursor-highlighter.php使用 jqplot 的荧光笔插件。当我在移动设备上使用它时,我希望工具提示在点击/触摸时显示,而不是在悬停时显示。有没有办法做到这一点?

我试过改变

在 jqplot.highlighter.js 的开头

但没有成功。也许我理解错了整个事情?

(与此同时,我找到了解决方案:如果您使用的是modernizr,请将上面的行替换为:

这样,如果您的移动设备启用了触控,则工具提示将在点击时激活;否则,它将在鼠标悬停时激活。

0 投票
6 回答
18468 浏览

jquery - JQPlot 折线图上的自定义工具提示

我正在尝试为折线图获取自定义工具提示,因为我希望工具提示更详细地描述点而不是该点的值。(附上的图片进一步解释了我在做什么)

我已经尝试过如何做到这一点。

下面是我的代码:

任何帮助将不胜感激。:)

0 投票
2 回答
5279 浏览

jquery - jqPlot 饼图工具提示

我认为 jqPlot 中的 Hightlighter 类不处理 PieRenderer 的工具提示是否正确?我花了很长时间试图让它们工作,但我似乎无法让它显示工具提示。

如果我是对的,有没有办法处理段的翻转并将数据传递给第三方 jQuery 工具提示?

谢谢。

0 投票
0 回答
678 浏览

tooltip - jqplot 工具提示不适用于大量 x 轴数据标签

我在我的代码中渲染了一个条形图,但由于我有太多的 x 轴数据点,所以工具提示没有显示。有人可以在这里帮忙吗?

我的代码是:

样本xAndyVals[0, 152518],其中0是 x 轴值,152158是 y 轴值。