ApexCharts

There are few options on how to include/import ApexCharts into your project:

Install from yarn

Install the ApexCharts icon library from command prompt from the root directory of the project:

yarn add apexcharts --save

Import Apxechart link from the libs.

<script src="assets/libs/apexcharts/apexcharts.min.js"><script/>

Import the helper function to manage the charts colors based on mode changes. It will take updated values from the root variables.

<script src="assets/js/charts/apexcharts-config.init.js"><script/>

Below the example how to use the package and make it working ApexCharts on any page.

HTML

Basic Line Chart

JavaScript

// Basic Line Chart
const basicLineChartEl = document.querySelector('#basic_line_chart'),
    basicLineChartOptions = {
        series: [{
            name: "Desktops",
            data: [10, 41, 35, 51, 49, 62, 69, 91, 148]
        }],
        chart: {
            height: 320,
            type: 'line',
            toolbar: {
                how: false
            },
            zoom: {
                enabled: false
            },
        },
        grid: {
            padding: {
                top: -10,
                left: -20,
                right: -5,
                bottom: -10,
            }
        },
        colors: ['--bs-primary'],
        dataLabels: {
            enabled: false
        },
        stroke: {
            curve: 'straight',
            width: 3,
        },
        xaxis: {
            categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep'],
        },
    };
allCharts.push([{ 'id': 'basic_line_chart', 'data': basicLineChartOptions }]);
Receive the latest updates directly in your inbox!

Be the first to know about new updates and exclusive discounts. No spam, just great offers!

How about

A Custom Project?

With over 7 years of experienced team, we specialize in delivering custom projects for startups, blue-chip companies, and government agencies. We have successfully completed over 250+ projects, providing tailored solutions that meet the unique needs of each client.

Support
More for Herozi
Herozi Admin & Dashboard Template
160+

Total Pages

6+

Layouts

60+

Components

We provide quick support withing one business day to all of our customers.

© Herozi Design & Develop by  Codebucks.