JSFiddle - React, Tailwind, and code Playground

HTML

<script src="https://cdnjs.cloudflare.com/ajax/libs/echarts/3.2.3/echarts.common.js"></script>
	<div id="app" style="width:300px;height:300px"></div>

JavaScript

(function(){
	    		var chart = echarts.init(document.getElementById('app'));
	    		var options = {
	    			title:{
	    				text:'累计用户'
	    			},
	    			tooltip:{
	    				trigger:'axis'
	    			},
	    			legend:{},
	    			toolbox:{
	    				show:'true',
	    				feature:{
	    					magicType:{type:['line','bar']}
	    				}
	    			},
	    			xAxis:{
	    				type:'category',
	    				boundaryGap:false,
	    				data:['8-12','8-13','8-14','8-15','8-16','8-17','8-18']
	    			},
	    			yAxis:{
	    				type:'value'
	    			},
	    			series:[{
	    				name:'新增用户',
	    				type:'bar',
	    				data:[5,22,35,11,15,22],
	    			}]
	    		};
	    		chart.setOption(options);
	    	})()