javascript 有没有好的客户端股票图表库?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/6078785/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-25 19:22:28  来源:igfitidea点击:

Are there any good client-side stock charting libraries out there?

javascriptchartsstockquotes

提问by noli

I would like to display interactive financial stock charts on a website, something like Google or Yahoo finance. I saw some recommendations on this thread looking for stock charting componentbut many of the suggestions are commercial, or require silverlight to be installed.

我想在一个网站上显示交互式金融股票图表,比如谷歌或雅虎财经。我在这个线程上看到了一些关于寻找股票图表组件的建议,但许多建议是商业性的,或者需要安装 Silverlight。

Can anyone recommend any decent Javascript client side libraries to do this? If they're free, even nicer

任何人都可以推荐任何体面的 Javascript 客户端库来做到这一点吗?如果他们是免费的,那就更好了

采纳答案by YetAnotherUser

How about using Google chartsitself. See an exampleor even play aroundwith it.

如何使用Google 图表本身。看一个例子,甚至玩弄它。

Though this has one drawback - you cannot use it offline. See FAQ'sfor detail.

虽然这有一个缺点——你不能离线使用它。有关详细信息,请参阅常见问题解答

Google's Annotated Time Lineprobably would meet your needs.

Google 的Annotated Time Line可能会满足您的需求。

You may want to explore dygraphsas well. It's open source and looks pretty powerful.

您可能还想探索dygraphs。它是开源的,看起来非常强大。

回答by Matty F

http://www.highcharts.com/is free for non-commercial use.

http://www.highcharts.com/可免费用于非商业用途。

http://g.raphaeljs.com/is completely free, based on the Raphael library, but comes with no documentation so you'll need to read through the source code of the examples.

http://g.raphaeljs.com/是完全免费的,基于 Raphael 库,但没有文档,因此您需要通读示例的源代码。

回答by John Green

So... what's wrong with commercial? I use commercial stuff all the time, because for larger projects, I have somebody to yell at when things don't work.

那么......商业有什么问题?我一直使用商业的东西,因为对于更大的项目,当事情不起作用时,我会有人大喊大叫。

To that end, my recommendation for charting without plugins is always highcharts. I have yet yo see anything else that approaches it for power, flexibility, but most important... something that works well out of the box (unlike, say Plotr or Raphaeljs).

为此,我对没有插件的图表的建议始终是highcharts。我还没有看到任何其他的东西可以接近它的力量、灵活性,但最重要的是......一些开箱即用的东西(不像 Plotr 或 Raphaeljs)。