There are few options on how to include/import Echarts into your project.
Install the Echarts Js library from command prompt from the root directory of the project:
yarn install echarts --save
Import Echart link from the libs.
<script src="assets/libs/echarts/echarts.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/echart-config.init.js"><script/>
Below the example how to use the package and make it working ApexTree on any page.
HTML
Basic Line Chart
JavaScript
// Basic Line Chart var basicLineChartOption = { grid: { left: '0%', right: '0%', bottom: '0%', top: '4%', containLabel: true }, xAxis: { type: 'category', data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'], }, yAxis: { type: 'value', }, series: [{ data: [150, 230, 224, 218, 135, 147, 260], type: 'line' }], color: ['--bs-primary'] }; allCharts.push([{ 'id': 'basicLineChart', 'data': basicLineChartOption }]);
Be the first to know about new updates and exclusive discounts. No spam, just great offers!
How about
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© Herozi Design & Develop by Codebucks.