GithubHelp home page GithubHelp logo

Comments (4)

areski avatar areski commented on July 17, 2024

Bower is not a dependencies, it's just recommend to download and install D3 / NVD3 files a.
"D3 and NvD3 can be installed through bower (which itself can be installed through npm)...."

There is a setting called assets_directory directory holding the assets (./bower_components/)
https://github.com/areski/python-nvd3/blob/master/nvd3/NVD3Chart.py#L78

You can use this to point to a different asset directory, the one you use with Flask.

from python-nvd3.

areski avatar areski commented on July 17, 2024

there is also the possibility to use cdn

from python-nvd3.

emiguevara avatar emiguevara commented on July 17, 2024

I think you did not understand my point. The assets_directory setting is bad design: it is a hard-coded variable that maps to a directory that will not be in place unless you install Bower. Of course one may want to give different locations to that variable, but the approach you have now obliges you to hard-code it everytime... it should be an option, the issue has not even been addressed.

from python-nvd3.

areski avatar areski commented on July 17, 2024

The question was :
Is it possible to pass python-nvd3 different locations for these scripts?

Or did I miss something else?

If so you can attach a solution with your issue and this might help to clarify your point

from python-nvd3.

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.