Wednesday, May 8, 2013

How to: Embed a Google Finance chart on your website

Enbridge, Inc. (TSE:ENB) - 5 Year

 

Thought I'd share this since it took me some time to find the answer on the inter-web.  Here's how I did it:

Insert an image, just like any other image:



<img border="0" src="https://www.google.com/finance/getchart?q=ENB&p=5Y&i=86400&x=TSE" />


Change the variables in the link:


  • q = Ticker
  • p = Period (Y for year, D for day, M for month)
  • i = Interval
  • x = Exchange


What would be cool is if we could add another ticker on this chart - am I asking for too much?  Please let me know if you figure that one out.

2 comments:

  1. Thank you man, this really helped me out :)!

    ReplyDelete
  2. Thank you for sharing a bunch of this quality contents, I have bookmarked your blog. Please also explore advice from my site. I will be back for more quality contents. best-noise-cancelling-headphones-under-100

    ReplyDelete