Highcharts 相当于这个 Raphael.js 图表演示——可能吗?

发布于 2024-10-09 20:53:56 字数 218 浏览 0 评论 0原文

是否可以在 Highcharts 中执行 这个 Raphael.js 图表演示 的等效操作?即,能够使图形以动画方式转换为新数据。

我见过的在 Highcharts 中绘制新数据图表的唯一示例只是重新绘制整个图表,而不是将点转换为新数据。所以我不确定它是否可行。

Is it possible to do the equivalent of this Raphael.js chart demo in Highcharts? Namely, to be able to have the graph animate a transform into the new data.

The only example I've seen of charting new data in Highcharts simply redraws the entire chart, instead of transforming the points into the new data. So I'm not sure it's even doable.

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

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

发布评论

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

评论(3

等数载,海棠开 2024-10-16 20:53:56

也许您想看看替代库,例如 Elycharts,这是一个 MIT 许可的 SVG+VML 图表库支持“步进动画”,请查看此演示

Maybe you want to look at alternative libraries like Elycharts, a MIT licensed, SVG+VML charting library supporting "step animations", look at this demo

寄居人 2024-10-16 20:53:56

您可以在 Highcharts 网站上找到许多示例,但是最近 Highcharts 已经实现了默认启用的动画选项,这样当您更改数据时,图表就会以动画方式显示到新位置。

我发现的一个例子是这样的: Highcharts 动画示例

chart: {
    animation: {
        duration: 1000
    }
},

当然,您可以在 Highcharts Options Reference 上找到更多信息(查找图表选项,然后查找动画)。

谢谢!

You can find many examples on the Highcharts web site, but yes lately highcharts have implemented the animate option which is on by defualt, so that when you change data, the graphs animate into the new positions.

One example I have found is this: Highcharts animation example

chart: {
    animation: {
        duration: 1000
    }
},

Of course you can find more information on Highcharts Options Reference (look for chart options and then animation).

Thanks!

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