timwis / vizwit

An interactive data visualization tool
http://vizwit.io
GNU General Public License v2.0
100 stars 35 forks source link

Live editor #161

Closed timwis closed 8 years ago

timwis commented 8 years ago

Adds a live editor for creating config json (demo). Also decouples "loading a gist" from laying out the config json on the page, which could come in handy when hitting GitHub's API limit for fetching gists -- it could pull from a local json file.

I think the decoupling needs a bit more thought before it's finalized. Right now I just named the file layout-from-gist.js, which is not very elegant. If layout.js takes a config json object and lays it out on the page (it assumes #header-container and #page-content are present), how can we have an entry point for loading from a gist and for loading from a file...

marks commented 8 years ago

This is really cool and useful