E Chart Js

OverviewOfficial Website

ECharts, a powerful, interactive charting and visualization library for browser.

Import Package
<!-- echarts package -->
import { VueEcharts } from "vue3-echarts";
Add Package
yarn add vue3-echarts --save
Remove Package
yarn add vue3-echarts or you can remove package by removing specific package from package.json
Examples
Title Example
Line Chart
const lineChart = {
grid: {
    left: '0%',
    right: '0%',
    bottom: '0%',
    top: '4%',
    containLabel: true
},
xAxis: {
    type: 'category',
    data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
    axisLine: {
        lineStyle: {
            color: '#858d98'
        },
    },
},
yAxis: {
    type: 'value',
    axisLine: {
        lineStyle: {
            color: '#858d98'
        },
    },
    splitLine: {
        lineStyle: {
            color: "rgba(133, 141, 152, 0.1)"
        }
    }
},
series: [{
    data: [150, 230, 224, 218, 135, 147, 260],
    type: 'line'
}],
textStyle: {
    fontFamily: 'Poppins, sans-serif'
},
color: ["#0AB39C"]

};
Stacked Line Chart
const stackedLineChart = {
// Setup grid
tooltip: {
    trigger: 'axis'
},
legend: {
    data: ['Email', 'Union Ads', 'Video Ads', 'Direct', 'Search Engine'],
    textStyle: { //The style of the legend text
        color: '#858d98',
    },
},
grid: {
    left: '0%',
    right: '0%',
    bottom: '0%',
    containLabel: true
},
toolbox: {
    feature: {
        saveAsImage: {}
    }
},
textStyle: {
    fontFamily: 'Poppins, sans-serif'
},
xAxis: {
    type: 'category',
    boundaryGap: false,
    data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
    axisLine: {
        lineStyle: {
            color: '#858d98'
        },
    },
},
yAxis: {
    type: 'value',
    axisLine: {
        lineStyle: {
            color: '#858d98'
        },
    },
    splitLine: {
        lineStyle: {
            color: "rgba(133, 141, 152, 0.1)"
        }
    }
},
series: [{
        name: 'Email',
        type: 'line',
        stack: 'Total',
        data: [120, 132, 101, 134, 90, 230, 210],
    },
    {
        name: 'Union Ads',
        type: 'line',
        stack: 'Total',
        data: [220, 182, 191, 234, 290, 330, 310]
    },
    {
        name: 'Video Ads',
        type: 'line',
        stack: 'Total',
        data: [150, 232, 201, 154, 190, 330, 410]
    },
    {
        name: 'Direct',
        type: 'line',
        stack: 'Total',
        data: [320, 332, 301, 334, 390, 330, 320]
    },
    {
        name: 'Search Engine',
        type: 'line',
        stack: 'Total',
        data: [820, 932, 901, 934, 1290, 1330, 1320]
    }
],
colors: ["#405189", "#0AB39C", "#F7B84B", "#F06548", "#299CDB"]
};
© Velzon.
Design & Develop by Themesbrand