Git Product home page Git Product logo

Comments (6)

v0dro avatar v0dro commented on August 30, 2024 1

Works. Loading library-specific JS files is pretty clever :)

from daru-view.

Shekharrajak avatar Shekharrajak commented on August 30, 2024

Noted.

from daru-view.

lokeshh avatar lokeshh commented on August 30, 2024

What's the reason behind not using CDN?

from daru-view.

Shekharrajak avatar Shekharrajak commented on August 30, 2024

It will be better if we can use daru-view offline (without internet connection) also. Nyaplot uses CDN, so it can't work when user don't have internet or offline.

from daru-view.

v0dro avatar v0dro commented on August 30, 2024

rbplotly is another nyaplot-like plotting library. Have a look at the offline feature: https://github.com/ash1day/rbplotly/tree/master/lib/plotly/offline

from daru-view.

Shekharrajak avatar Shekharrajak commented on August 30, 2024

Thanks @v0dro , for sharing the link. rbplotly can generate the charts pretty well. I see the offline code where it is loading the saved JS file, before chart script. But it will load the dependent js script each time, to plot the chart. But it is not needed each time before plotting in the webpage or IRuby notebook (once depended JS in loaded in the webpage then it will be used in all chart script)

In daru-view, when we set the library like Daru::View.plotting_library(:googlecharts) , in IRuby notebook then it loads the google chart JS files. In web application we need to put line Daru::View.dependent_script(:googlecharts) where we want to paste JS file (mostly we put it in head tag of the layout file). So daru-view don't load the JS files before each chart script.

from daru-view.

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.