开发者

How to embed Google finance historical charts on a website?

开发者 https://www.devze.com 2023-04-04 04:58 出处:网络
It\'s easy enough to link to these financial charts at Google finance, but how to embed them on a website? Is there a way to do it that doesn\'t involve too much programming? I want to embed these cha

It's easy enough to link to these financial charts at Google finance, but how to embed them on a website? Is there a way to do it that doesn't involve too much programming? I want to embed these charts for a 开发者_如何学运维project I'm working on at cashexchangerates.com. If it's not possible, any suggestions for alternative chart sources would be much appreciated.


If you don't need the chart to be interactive. You could get the alt image from Google. For example the URL

http://www.google.com/finance/getchart?q=EURUSD&x=CURRENCY&p=1Y&i=86400

Will show the following image:

How to embed Google finance historical charts on a website?

Looks like that :

  • p is the period where:
    • d for # of day
    • M for # of month
    • Y for # of year

Note: I have no idea what i parameter does.

0

精彩评论

暂无评论...
验证码 换一张
取 消