简体   繁体   中英

Django and a nice javascript chart template. Which js library should I use?

I am planning a project using Django as a back-end and bootstrap as a basic front end layout. Also I will need a beautiful js charts library.

For the integration between Django and bootstrap there is another question here where the interesting discussion takes place.

For the integration with a js chart library, I've found a nice library: nvd3.js . Also I've found a django app to integrate nvd3 with django, I've tested it and it works fine, at least with the toy examples.

Does anybody have any experience using it with django?

I am not an expert, I would like some advice from experienced people when combining this tools. I am also opened to any other tool or library.

When i started with Django i also searched for as many plugins as possible, because i thought that would ease the development process. Why reinvent the wheel i asked myself? But as time went by i found out that many things are better when i did them myself, because almost without exception you will find yourself changing the default behavior or configuration of those plugins. And that's very the hacking begins.

Therefore ask yourself this question:

Do i really need a plugin that includes a JavaScript file for me and provides some template shortcuts that i rarely use and which i could write myself if need them?

Ok, i know that the question is biased. But you get my point. Don't overuse django plugins. Instead, do easy stuff yourself and exactly review all plugins for more complex tasks if they fit to your current requirements.

To answer your question directly: Choose a library, include it in your base layout and write the necessary JavaScript code to display the carts.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM