问题标签 [dygraphs]

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 投票
1 回答
402 浏览

javascript - 具有 MultipleSeries 的 RangeSelector

我知道范围选择器显示了多个系列的平均值。有没有办法选择特定系列作为范围选择器系列。有没有一种方法我可以重写来修改范围选择器绘图的行为。

0 投票
1 回答
590 浏览

javascript - 将参数传递给 dygraph drawcallback

dygraph drawcallback 有两个参数,一个是对 dygraph 对象的引用,另一个是布尔值,如果它是第一次绘制图形。但我也想向回调发送可选参数,而不是创建全局变量。那可能吗?

0 投票
2 回答
3737 浏览

javascript - 在 dygraph 中显示平均值的水平线

我正在尝试向 dygraph 添加一条水平线,它已经显示了我的时间序列数据。

我有完整数据的平均值,我想在 dygraph 上显示为静态水平线。

有谁知道如何简单地做到这一点。

我已经检查了以下链接: http ://dygraphs.com/tests/highlighted-region.html 查看源代码: http: //dygraphs.com/tests/crosshair.html

必须有一些简单的解决方案

0 投票
1 回答
612 浏览

javascript - 如何将我的对象与数据转换为 dygraphs 的输入?

我有一个时间序列列表。每个时间序列都由包含时间戳和值的对象组成。不同时间序列的时间戳可能重叠也可能不重叠。我想在一个 DyGraph 中绘制这些时间序列。

一个例子:

将我的输入数据转换为适合 DyGraph 的形式的最有效方法是什么?

0 投票
1 回答
722 浏览

3d - 是否可以使用 dygraphs 创建 3d 图表?

是否可以使用 Dygraphs 创建 3D 图表(条形图)?

0 投票
1 回答
313 浏览

gwt - GWT 上的 Dygraph 与 googlevizualization

我正在尝试在我们的 GWT 项目中使用 Dygraph。但是,我无法从这里找到 dygraph-gwt.jar fe http://rowsandcolumns.blogspot.com/2012/04/gwt-dygraph-example-using-visualization.html

我也看了http://dygraphs.com/

我已经有了一些带有数据的可视化图表。

那么,任何人都可以告诉我如何在 GWT 上使用 Dygraph 和 GViz 吗?

感谢帮助。

0 投票
1 回答
877 浏览

dygraphs - 在 dygraphs 中隐藏 Y2 轴标签不会回收画布右侧的空间

如何在全局设置 drawYAxis: false 时隐藏画布上的 Y2 轴并回收空间。左侧和右侧隐藏了标签,但在图表的右侧仍有约 50 像素的内边距无人认领。左侧(Y1)按预期完全回收。

0 投票
1 回答
1084 浏览

javascript - 使用变量作为'y2'时不显示dyGraphs第二个Y轴

我有以下代码来显示带有两个轴的图形。数据格式如下: Date, Value1, Value2

不是显示y2axis,而是两个系列都出现在图表上并且只y axis显示。如果我在上面的代码中替换string2(变量字符串)Y2,两个轴都会出现。

我究竟做错了什么?

0 投票
1 回答
146 浏览

dygraphs - dygraph 是否假设自变量是有序的?

似乎 x 轴的默认 L/H 是由系列的第一个/最后一个点而不是 min/max 确定的。

有没有办法改变 dygraph 中的这种行为?这被认为是一个错误吗?还是我应该排序?

0 投票
1 回答
1341 浏览

dygraphs - Dygraphs: can't resolve graphs with null values in IE and Chrome

Synopsis: A graph that contains null array values displays correctly in Firefox, but not in IE or Chrome. However, a subset of the data containing null values displays correctly in all three browsers.


I've created a graph that renders correctly on Win7 in Firefox (v20.0.1), IE10 (v10.0.9200, update versions 10.0.4), and Chrome (v26.0.1410.64), where it looks like this:

DynChartDemo displayed in Chrome

Notice the diagonal line between Detector D3 on 22 Oct. and Detector D1 on 26 Dec. We have a business rule that there must always be an intermediate detection on the adjacent detector in order to display a connector; otherwise, I insert a null value as shown below to "disconnect" the detectors.

[ new Date("2012/10/22 03:26:59"), 3],
[ new Date("2012/10/22 03:27:60"), null],
[ new Date("2012/12/26 01:18:10"), 1],

This works swell in Firefox:

DynChartDemo2 displayed in Firefox

...but not in Chrome or IE:

DynChartDemo2 displayed in IE

Curiously, a subset of the data displays correctly in all three browsers.

Zoomed DynChartDemo_small displayed in Chrome

The only difference between DynChartDemo and DynChartDemo2 is the addition of null records in the data array. The only difference between DynChartDemo2 and DynChartDemo_small (presented below) is that I've removed about 1500 data records from around the remaining array records.

#xA;


Bottom Line: How can I display the entire 1500+ record data set in Chrome and IE as well as Firefox?