Third-Party Plugins
Charts are graphical representations used to showcase and simplify complex data sets, making information more comprehensible and visually appealing. They vary in types-from line to bar to pie-each highlighting specific data patterns and trends.
Note that this component requires the use of the third-party Apexcharts plugin.
Install apexcharts
via npm
npm i apexcharts
Include the CSS <script>
near the end of your </head>
tag:
<link rel="stylesheet" href="./node_modules/apexcharts/dist/apexcharts.css">
Include the JavaScript <script>
near the end of your </body>
tag:
<script src="./node_modules/lodash/lodash.min.js"></script><script src="./node_modules/apexcharts/dist/apexcharts.min.js"></script>
Certain JavaScript Helpers in Preline UI make use of Lodash plugin. Don't forget to install it, if you haven't done so already: npm i lodash
Include the JavaScript <script>
after the helper-apexcharts.js
file.
<script src="./node_modules/preline/dist/helper-apexcharts.js"></script>