Are there any good client-side stock charting libr

2020-02-23 08:34发布

问题:


Want to improve this question? Update the question so it's on-topic for Stack Overflow.

Closed 8 years ago.

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 component but many of the suggestions are commercial, or require silverlight to be installed.

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

回答1:

How about using Google charts itself. See an example or even play around with it.

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

Google's Annotated Time Line probably would meet your needs.

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



回答2:

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

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.



回答3:

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).