Dojox 图表,柱形图表类型的问题

发布于 2024-09-07 02:05:37 字数 806 浏览 0 评论 0原文

我不知道出了什么问题。使用 dojotoolkit.org 中的最新内容。我的图表对于标记图或折线图呈现良好:

        this.chartVol.addPlot("default", {
            type: "MarkersOnly",
            lines: false,
            markers: false,
            gap: 1,
            hAxis: 'volX',
            vAxis: 'volY'
        });

但是当我更改为“列”时,我什么也得不到。

        this.chartVol.addPlot("default", {
            type: "Columns",
            lines: false,
            markers: false,
            gap: 1,
            hAxis: 'volX',
            vAxis: 'volY'

        });

我正在查看此指南页面,不清楚我做错了什么。

http://www.dojotoolkit.org/reference-guide/ dojox/charting.html#dojox-charting

I can't figure out what's wrong. Using the latest everything from dojotoolkit.org. My chart renders fine for a Marker or Line chart:

        this.chartVol.addPlot("default", {
            type: "MarkersOnly",
            lines: false,
            markers: false,
            gap: 1,
            hAxis: 'volX',
            vAxis: 'volY'
        });

but when I change to "Columns" I get nothing.

        this.chartVol.addPlot("default", {
            type: "Columns",
            lines: false,
            markers: false,
            gap: 1,
            hAxis: 'volX',
            vAxis: 'volY'

        });

I'm looking at this howto page, it's not clear what I'm doing wrong.

http://www.dojotoolkit.org/reference-guide/dojox/charting.html#dojox-charting

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

余生再见 2024-09-14 02:05:37

很难从您发布的片段中说出您做错了什么。有些东西很奇怪,但看起来无害,例如 MarkersOnlygaplinesmarkersColumns< /代码>。确保您定义了名为 volXvolY 的轴。

行和列之间的一大区别是数据。虽然线图(默认)接受数字数组或 {x, y} 点,但柱图(1.5 之前)仅接受数字数组(出于显而易见的原因 x< /code> 不能用列绘制)。

你说你使用最新的一切,所以我假设你正在运行 1.5 的 beta 版本 - 它应该可以工作,但我不能从你的代码片段中看出什么问题,抱歉。需要更多信息。

Hard to say what you do wrong from the snippets you published. Some stuff is strange but appears harmless, like gap for MarkersOnly or lines and markers for Columns. Make sure that you do define axes named volX and volY.

One big difference between lines and columns is the data. While the lines (default) plot accepts an array of numbers or {x, y} points, the columns plot (prior to 1.5) accepts only an array of numbers (for obvious reasons x cannot be plotted with columns).

You said you use the latest everything, so I assume you are running the beta version of 1.5 — it should work, but I cannot say what's wrong from your snippets, sorry. Need more info.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文