-
Notifications
You must be signed in to change notification settings - Fork 477
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[META] Use ES6 constructs, idioms in metrics-graphics #811
Comments
A little wrap up of what we did and what is left to do: All files under The files under charts could also further be refactored to use ES6 Classes. |
Once this is done, is it worth changing the Also, it would be great if you could include only the charts you use: import 'metric-graphics/charts/line'; Or tree shaking: import { lineCharts, mg } from 'metric-graphics'; So any other charts / modules not used by metric graphics will be removed (at least by Webpack, and Rollup I believe) Now to cut down the size of the d3 dependency.... but that's another topic 😄 |
There's a safer intermediate step: leave |
Now that we're using babel to transpile, we should start using some ES6 idioms. It might be a good idea to use an automated-converter like lebab to automate this process.
For now we should try to do this in a backwards-compatible way. i.e. none of the public interfaces provided by metricsgraphics should change at all.
@lobax and some students might be interested in taking these on.
The text was updated successfully, but these errors were encountered: