Git Product home page Git Product logo

Comments (6)

davidanthoff avatar davidanthoff commented on May 24, 2024

There is also a story for this via FileIO.jl: if your figure object implements show methods for SVG, PNG, PDF or EPS, it automatically hooks into the FileIO.jl save method, without you having to do anything else. So things like save('myfig.png", fig) will just work if fig supports a show method for the PNG mime type. The IOContext in these cases will have a custom property :full_fidelity=>true that indicates that the show method should write a full fidelity version, not something meant for a display, in case that makes a difference.

from echarts.jl.

randyzwitch avatar randyzwitch commented on May 24, 2024

It's not really clear to me what FileIO is providing here, to be honest.

I can see wanting to write an EChart directly to json (I already defined print(x::EChart), would just need to write it to file), getting a PNG (which can be done from inside echarts.js), and possibly writing a whole HTML page out (which could be factored out of my show method).

Is there any key functionality that FileIO provides that I'm not understanding?

from echarts.jl.

davidanthoff avatar davidanthoff commented on May 24, 2024

No, it just gives us a shared saved method that lots and lots of packages can use, that is pretty much it.

from echarts.jl.

randyzwitch avatar randyzwitch commented on May 24, 2024

#53 might help with this

from echarts.jl.

davide-f avatar davide-f commented on May 24, 2024

Are there any update on this issue? I believe it would be very useful

from echarts.jl.

randyzwitch avatar randyzwitch commented on May 24, 2024

I'm not actively working on this package, but happy to review pull requests from the community

from echarts.jl.

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.