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. Preline uses ApexCharts v4.7, which was released before the June 2025 licensing change. Please review ApexCharts licensing terms if you plan to use newer versions.
Install apexcharts via npm
npm i apexcharts
Include the CSS <script> near the end of your </head> tag:
Include the JavaScript <script> near the end of your </body> tag:
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. If you also need to use the varToColor function, include the helper-shared.js file as well.