E-Charts

Introduction

A Declarative Framework for Rapid Construction of Web-based Visualization, for more details you can check here.

How to Setup

HTML Structure

<div id="e_chart_6" class="" style="height:294px;"></div>

Dependency

JS

<!-- EChartJS JavaScript -->
<script src="vendors/echarts/dist/echarts-en.min.js"></script>
<script src="dist/js/areacharts-data.js"></script>

Initialize Echarts JS

Line Chart

if( $('#e_chart_6').length > 0 ){
	var e_chart_6 = echarts.init(document.getElementById('e_chart_6'));
	var option6 = {
		tooltip: {
			show: true,
			trigger: 'axis',
			backgroundColor: '#fff',
			borderRadius:6,
			padding:6,
			axisPointer:{
				lineStyle:{
					width:0,
				}
			},
			textStyle: {
				color: '#324148',
				fontStyle: 'normal',
				fontWeight: 'normal',
				fontFamily: 'inherit',
				fontSize: 12
			}	
		},
		xAxis: {
			type: 'category',
			boundaryGap: false,
			data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
			axisLine: {
				show:false
			},
			axisTick: {
				show:false
			},
			axisLabel: {
				textStyle: {
					color: '#5e7d8a'
				}
			}
		},
		yAxis: {
			type: 'value',
			axisLine: {
				show:false
			},
			axisTick: {
				show:false
			},
			axisLabel: {
				textStyle: {
					color: '#5e7d8a'
				}
			},
			splitLine: {
				lineStyle: {
					color: '#eaecec',
				}
			}
		},
	   
		series: [
			{
				data:[120, 132, 101, 134, 90, 230, 210],
				type: 'line',
				stack: 'a',
				symbolSize: 6,
				itemStyle: {
					color: '#00acf0',
				},
				lineStyle: {
					color: '#00acf0',
					width:2,
				}
			}
		]
	};
	e_chart_6.setOption(option6);
	e_chart_6.resize();
}

Bar Chart

Area Chart

Donut Chart

Pie Chart

Last updated

Was this helpful?