Chart.js: What is the purpose of Chart.bundle.js?

Created on 18 Apr 2016  ·  8Comments  ·  Source: chartjs/Chart.js

I'm puzzled about this new (to me) file. It seems very similar to Chart.js, but the documentation does not mention it or it's purpose.

help wanted bug documentation

Most helpful comment

@beruic it includes moment.js and the color library we use. It's most applicable for those who want to just drop in a single file and have it work.

We should get the docs updated on this

All 8 comments

@beruic it includes moment.js and the color library we use. It's most applicable for those who want to just drop in a single file and have it work.

We should get the docs updated on this

Super! Looking forward to the documentation as I am still not completely sure what it means. For now I will continue using Chart.js like always :)

Hope the documentation being completed the sooner the better.

Based on comments from .min files I guess the only difference is the lack of moment.js in normal version.

P.S. Just was thinking to ask why are there comments in .min files but not in full and I reallised there are comments in full files as well (on lines 1590-1598). Is there a reason to put them that far away and not at the top of the file?

@vatnoise it's the way browserify puts together the files.

Guys, what if there is another plugin on page that uses another version of moment.js? Will it conflict or are they isolated?

Clarification on the moment.js conflict potential would be great; I've got moment latest as an application dependency.

Was also confused by this. It would be handy to have the modules included in the file bundle name for clarity, for instance: https://github.com/reactjs/react-router-redux

chart-moment-color.js would be way more informative compared to just Chart.bundle.js

Was this page helpful?
0 / 5 - 0 ratings