reactjs / react-chartjs

common react charting components using chart.js
MIT License
2.93k stars 301 forks source link

Global chart configuration #65

Closed johnnyfreeman closed 8 years ago

johnnyfreeman commented 8 years ago

In chart.js, you can set global chart configuration. How can you do this using react-chartjs and browserify?

kai23 commented 8 years ago

+1 ?

palmerj3 commented 8 years ago

You could define a singleton export with the default options then myOptions = Object.assign({}, mySingleton, { override1: foo, override2: bar});

austinpray commented 8 years ago

what @palmerj3 said