<body>
<script>
Var myChart=echarts. Init ($(" # main "))//no, complains
//var myChart=echarts. Init (document. GetElementById (" main "));//can use the
//the specified configuration chart and data
Var option={
Title: {
Text: 'introductory ECharts example'
},
Tooltip: {},
Legend: {
Data: [' sales']
},
XAxis: {
Data: [" shirt "and" sweater ", "snow spins unlined upper garment", "pants", "high heels", "socks"]
},
YAxis: {},
Series: [{
Name: 'sales'
Type: 'bar',
Data: [5, 20, 36, 10, 10, 20]
}]
};
//use the specified configuration items and data display chart,
myChart.setOption(option);
</script>