Re:Britecharts: D3.js based charting library of components
by mrborgen on Wednesday May 10, 2017 @03:35PM
(#14310945)
Awesome! Do you have an simple one page example where you're pulling the lib from a CDN?
[ Parent
| on HN ]
Re:Britecharts: D3.js based charting library of components
by Golodhros on Wednesday May 10, 2017 @04:05PM
(#14311164)
It's coming! We have an issue with our webpack configuration and the way we create the 'whole' bundle, but it will be ready soon!
Re:Britecharts: D3.js based charting library of components
by metafunctor on Wednesday May 10, 2017 @04:16PM
(#14311249)
I spent a few moments trying to use this as a standalone JS library for showing a simple chart, but couldn't make it work. I cannot see anything useful being exported from dist/bundled/britecharts.min.js.
I'd prefer to simply load d3.js, then britecharts.js on top of that, and be on my way. This is how metricsgraphics.js worked, and it was super simple to take into use.
Re:Britecharts: D3.js based charting library of components
by Golodhros on Wednesday May 10, 2017 @11:59PM
(#14313751)
Hi Metafunctor, thanks for checking out Britecharts!
I am sorry that you just find our current bug with the build! We have an issue about that, and we will be trying to fix it ASAP. I totally understand, having all the charts available in one file is an important use case.
In the meanwhile, you can use the individual chart bundles, like '/dist/umd/bar.min.js' and either load it with require/commonJS or load it with a script tag (it would be assigned to document.britecharts.bar).