Javascript 石墨线图
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/3729198/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Graphael line chart
提问by Rhabarber
Is there a good tutorial for Graphael (special line charts), I currently trying to implement such a graph with grafael http://www.highcharts.com/demo/?example=line-time-series&theme=defaultunfortunately there is no documentation.
是否有一个很好的 Graphael 教程(特殊折线图),我目前正在尝试使用 grafael http://www.highcharts.com/demo/?example=line-time-series&theme=default实现这样的图表,不幸的是没有文档.
回答by Smerity
A useful resource has been Kenny Shen's GitHub repository where he has begun writing up both documentation and examples for gRaphael.
一个有用的资源是 Kenny Shen 的 GitHub 存储库,他已经开始为 gRaphael 编写文档和示例。
https://github.com/qoelet/g.raphael
https://github.com/qoelet/g.raphael
As an example check out the line chart documentation here
作为示例,请在此处查看折线图文档
回答by uzar
The best example of a Raphael linechart must be this one: http://g.raphaeljs.com/linechart.html, from the source code you can get a lot of information on how they work and how they can be configured.
Raphael 折线图的最佳示例必须是这个:http://g.raphaeljs.com/linechart.html ,从源代码中您可以获得大量关于它们如何工作以及如何配置它们的信息。
As far as I know there is no official documentation on this (yet?).
据我所知,还没有关于此的官方文档(还没有?)。
回答by Alex
To change the stacking of the lines, use the toFront and toBack functions.
要更改行的堆叠,请使用 toFront 和 toBack 函数。
linechart.lines[index].toFront();
回答by George Maicovschi
You could also check out RaphAlytics since it gives you quite a few options you can customize as well as the freedom to use multiple lines in the same graph and textual labels (which, unfortunately, gRaphael does not)
您还可以查看 RaphAlytics,因为它为您提供了很多可以自定义的选项以及在同一图形和文本标签中使用多行的自由(不幸的是,gRaphael 没有)
Check it out over here: https://github.com/tataencu/raphalytics
回答by blazkovicz
For line charts here is good article: https://www.exratione.com/2011/10/a-few-tips-for-graphael-line-charts/
对于折线图,这里是好文章:https: //www.exratione.com/2011/10/a-few-tips-for-graphael-line-charts/