Comments (5)
Or it could be done by a query that we put behind our url.
from charted.
Can you give an example?
from charted.
I use Google Spreadsheets to automatically collect data and create the link for charted. My data has a lot of columns it looks like this on Charted. http://www.charted.co/c/832c396
The link i create in the spreadsheet looks like this to get control what is written in the fields and set the settings.
Decoded URL:
http://www.charted.co/?{"dataUrl":"https://docs.google.com/spreadsheets/d/1UFAEfjGfxuFFghAjAAC7FOunwwyAPr7AwozXY971OeU/export?gid=0&format=csv","color":"light","charts":[{"type":"line","rounding":"on","title":"Wurm Unlimited","note":"Skill Dumps"}]}
Encoded URL:
http://www.charted.co/?%7B%22dataUrl%22%3A%22https%3A%2F%2Fdocs.google.com%2Fspreadsheets%2Fd%2F1UFAEfjGfxuFFghAjAAC7FOunwwyAPr7AwozXY971OeU%2Fexport%3Fgid%3D0%26format%3Dcsv%22%2C%22color%22%3A%22light%22%2C%22charts%22%3A%5B%7B%22type%22%3A%22line%22%2C%22rounding%22%3A%22on%22%2C%22title%22%3A%22Wurm%20Unlimited%22%2C%22note%22%3A%22Skill%20Dumps%22%7D%5D%7D
it would be nice if we could sort columns of data via the query. So that it looks like this.
http://www.charted.co/c/d139241
I guess its maybe already possible. i just did not find any example how the query has to be structured. I think the short URL feature is hiding whats going on.
And yea my first idea was to do it via the data itself. Like add some empty column for example... but this is not a good idea i think. Via the query it would be awesome.
from charted.
Oh wow, interesting use case! The URL version of setting parameters is there for backwards compatibility, it wasn't made to be used as API but maybe it should.
@mikesall what do you think?
from charted.
Yea its a fun project i am working on. I love charted!!
I imagine it like this:
http://www.charted.co/?{"dataUrl":"","color":"light","chart1":[{"type":"line","rounding":"on","title":"","note":"","series":"1-2-3-4"}],"chart2":[{"type":"line","rounding":"on","title":"","note":"","series":"5-6-7-8"}] }
from charted.
Related Issues (20)
- dom.js 404 HOT 2
- Uncaught Assertion Error on Embed page HOT 3
- Could you provide me with direct link to file used in Example? HOT 1
- 'bin' is not recognized error on npm start
- Make interpolation better
- allow resizeable embeds
- Unable to read csv from google docs HOT 5
- Add messaging & help info for when a google doc url is not public
- error running npm install locally HOT 2
- Implement short URLs
- No longer reading Shared Google sheet HOT 5
- error when all values in a series = 0
- dropbox link to CSV file doesnt work HOT 3
- How to load local file HOT 1
- Loading a short url should populate the input while it fetches the data HOT 2
- Embed code does not work on Medium HOT 6
- Charted shouldn't try to visualize errors/missing data on refetch
- a long list of series in the legend should not overlap with the title or note
- Support pasting content directly instead of pulling it via URL
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from charted.