Chart.js/samples
Simon Brunel 55128f74c1 Move CSS in a separate file to be CSP-compliant (#6048)
In order to be compatible with any CSP, we need to prevent the automatic creation of the DOM 'style' element and offer our CSS as a separate file that can be manually loaded (`Chart.js` or `Chart.min.js`). Users can now opt-out the style injection using `Chart.platform.disableCSSInjection = true` (note that the style sheet is now injected on the first chart creation).

To prevent duplicating and maintaining the same CSS code at different places, move all these rules in `platform.dom.css` and write a minimal rollup plugin to inject that style as string in `platform.dom.js`. Additionally, this plugin extract the imported style in `./dist/Chart.js` and `./dist/Chart.min.js`.
2019-02-08 19:06:04 +01:00
..
advanced Move CSS in a separate file to be CSP-compliant (#6048) 2019-02-08 19:06:04 +01:00
charts Fix pointBackgroundColor in radar sample (#6013) 2019-01-25 11:48:01 +01:00
legend Use Chart.min.js in samples (#5958) 2019-01-06 09:56:58 -05:00
scales Use Chart.min.js in samples (#5958) 2019-01-06 09:56:58 -05:00
scriptable Use Chart.min.js in samples (#5958) 2019-01-06 09:56:58 -05:00
tooltips Use Chart.min.js in samples (#5958) 2019-01-06 09:56:58 -05:00
.eslintrc.yml Setup HTML and JS linters for samples (#5195) 2018-02-03 13:28:54 +01:00
favicon.ico Reorganize samples and list them in index.html (#4043) 2017-03-20 20:40:44 -04:00
index.html Use HTTPS instead of HTTP for URLs supporting it 2018-12-17 07:50:02 +01:00
logo.svg Reorganize samples and list them in index.html (#4043) 2017-03-20 20:40:44 -04:00
samples.js Move CSS in a separate file to be CSP-compliant (#6048) 2019-02-08 19:06:04 +01:00
style.css Move CSS in a separate file to be CSP-compliant (#6048) 2019-02-08 19:06:04 +01:00
utils.js Make bar styling options scriptable (#5780) 2018-11-12 21:15:37 +01:00