lukbukkit / chartist-plugin-tooltip

Tooltip plugin for Chartist.js
MIT License
16 stars 13 forks source link

documentation to include CSS #13

Closed khlilturki97 closed 3 years ago

khlilturki97 commented 3 years ago

I have been struggling with this plugin using angular, until i found out that my project was missing CSS files

I think it should be documented

lukbukkit commented 3 years ago

Thanks, that's a good idea. Can you show two examples how to include the CSS files? I'm thinking of something like the following

[...]

... and it's style sheet

  1. in the <head> of your HTML file

    <link rel="stylesheet" href="node_modules/chartist/dist/chartist.css">
    <link rel="stylesheet" href="node_modules/chartist-plugin-tooltips-updated/dist/chartist-plugin-tooltip.css">
  2. as a Webpack CSS import

    import 'chartist/dist/chartist.css';
    import 'chartist-plugin-tooltips-updated/dist/chartist-plugin-tooltip.css';

Now you can use the different options for labels:

[...]

khlilturki97 commented 3 years ago

@LukBukkit done, really happy to help improve this awesome package