Template:HFUT-china/v2Js

// 基于准备好的dom,初始化echarts实例 var myChart = echarts.init(document.getElementById('distribution'));

// 指定图表的配置项和数据 var option = {

   title: {
       text: 'Which function do you think should be refined?',
   },
   tooltip: {
       trigger: 'axis',
       axisPointer: {
           type: 'shadow'
       }
   },
   legend: {
       data: [, ]
   },
   grid: {
       left: '3%',
       right: '4%',
       bottom: '3%',
       containLabel: true
   },
   xAxis: {
       type: 'value',
       boundaryGap: [0, 0.01]
   },
   yAxis: {
       type: 'category',
       data: ['Search','Recommendation','Literature Analysis']
   },
   series: [
       {
           name: 'BioDesigner Coral',
           type: 'bar',
           data: [57.1,42.9,71.4]
       }
   ]

};

// 使用刚指定的配置项和数据显示图表。 myChart.setOption(option);