in progress graph support docs

blindmime
@blindmime
10 years ago
772 posts
Where might I find documentation on using graph support in templates?
updated by @blindmime: 06/28/16 07:26:41AM
brian
@brian
10 years ago
10,149 posts
Let me get some documentation added that covers how to use it.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
derrickhand300
@derrickhand300
10 years ago
1,353 posts
I was also looking for documents on this.
The government puts out a weekly natural gas storage report ( updates Thursdays)
They have this url of just the weekly raw data
http://ir.eia.gov/ngs/wngsr.txt
I can add it to my site using an iframe BUT I prefer to format it as a table or chart somehow which seems difficult if I use the iframe

I was wondering if this Graph Support Module might be the answer- the template seems to use some of the javasript that I am thinking would be needed to make this work- so just looking for docs to see IF it can be done using the module- then HOW

I want this set up somehow using their URL so I do not have to manually update the data each Thursday

Problem with Iframes is that this is an external URL...
Thanks
updated by @derrickhand300: 04/14/15 07:21:37PM
michael
@michael
10 years ago
7,793 posts
Are you able to get it in any other format than a .txt file? because its hard to re-format an un-formatted document.

If they provide the data as a .json structure, then you would need a module to read it, then you could output it however you liked.

The key is to save the data to your datastore, so you have historic data too. an iframe is gone when they update their site.

--edit--
Perhaps even use aparna and the Form Designer to create that form, then enter it manually yourself every thursday. Nicer to not have to manually enter it, but there's not a lot of data there.
updated by @michael: 04/15/15 02:41:43AM
SteveX
SteveX
@ultrajam
10 years ago
2,584 posts
They have a json response:
http://ir.eia.gov/ngs/wngsr.json

Is the data you want in the text file also in that json?


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)
derrickhand300
@derrickhand300
10 years ago
1,353 posts
Yes Thanks UJ- there is this json- a txt and a csv all from URL

The json actually contains more data than the txt summary and I would prefer it( more is always better in my world)

Yes I used to do a bunch of Updates on Fridays when reports and rig count information for the week became available- did it for several years but have moved away from that

I am looking for way to make content update on my site when its updated on the Government site http://ir.eia.gov/ngs/ngs.html

I am thinking that is the reson the files are provided- just have to figure out to use them

You can see the files in the upper right of this page/chart
updated by @derrickhand300: 04/15/15 09:51:34AM

Tags