Giter Site home page Giter Site logo

Comments (5)

farooo avatar farooo commented on September 17, 2024

Or it could be done by a query that we put behind our url.

from charted.

valueof avatar valueof commented on September 17, 2024

Can you give an example?

from charted.

farooo avatar farooo commented on September 17, 2024

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.

valueof avatar valueof commented on September 17, 2024

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.

farooo avatar farooo commented on September 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.