echarts学习

Posted 逗比煎饼侠

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了echarts学习相关的知识,希望对你有一定的参考价值。

demo:https://github.com/fei1314/echarts/tree/master

 

基本使用:

let charts=echarts.init(容器元素)
  let option={
    title:      标题
    xAxis:      柱状图
    yAxis:      柱状图
    series:[    数据
      {
        name: ‘名字‘,
        type: ‘bar/pie/radar‘,
        data: [数据]
      }
    ]
  };

  charts.setOption(option);

更多用法见官网:http://echarts.baidu.com/api.html#echarts

以上是关于echarts学习的主要内容,如果未能解决你的问题,请参考以下文章