Giter Site home page Giter Site logo

Base64 Data about quickchart HOT 5 CLOSED

typpo avatar typpo commented on September 18, 2024
Base64 Data

from quickchart.

Comments (5)

typpo avatar typpo commented on September 18, 2024

That's a good idea, I'll see what I can do. In the meantime, do you want to share your difficulty URL-encoding the JSON? I would imagine base64 encoding is no more difficult than URL encoding, as most languages have built-in libraries capable of doing both.

from quickchart.

Cretezy avatar Cretezy commented on September 18, 2024

It could help with handling of the pound symbol for sure, it's a lot more trouble to have to convert hex -> rgb than just base64 it 😋

from quickchart.

typpo avatar typpo commented on September 18, 2024

Hmm, I think your URL encoder should handle pound signs though! For example, in Javascript:

> encodeURIComponent('color:#abc123')
'color%3A%23abc123'

from quickchart.

typpo avatar typpo commented on September 18, 2024

Goods news, I've just added support for base64 encoding! Although you could theoretically solve your problem with URL encoding, base64 is more compact and it plays nicer with unicode :)

Here's an example:

https://quickchart.io/chart?encoding=base64&c=ew0KICB0eXBlOiAnYmFyJywNCiAgZGF0YTogew0KICAgIGxhYmVsczogWydKYW51YXJ5JywgJ0ZlYnJ1YXJ5JywgJ01hcmNoJywgJ0FwcmlsJywgJ01heSddLA0KICAgIGRhdGFzZXRzOiBbew0KICAgICAgbGFiZWw6ICdEb2dzJywNCiAgICAgIGRhdGE6IFsgNTAsIDYwLCA3MCwgMTgwLCAxOTAgXQ0KICAgIH0sIHsNCiAgICAgIGxhYmVsOiAnQ2F0cycsDQogICAgICBkYXRhOiBbIDEwMCwgMjAwLCAzMDAsIDQwMCwgNTAwIF0NCiAgICB9XQ0KICB9DQp9

image

Docker package is updated as well. Let me know if you have any issues!

from quickchart.

Cretezy avatar Cretezy commented on September 18, 2024

Ah you're totally right about #! The README slightly confused me.

Anyways thanks, this is an awesome feature!

from quickchart.

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.