1.0.0 • Published 2 years ago

lyt-echarts v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

使用说明

此组件是基于echarts进行二次封装

首先需要安装echarts npm install echarts

组件介绍 可传入值 :options :width/:height

数据参数实例 新建 options.js

export const options1 = {
  title: {
​    text: "ECharts 入门示例",
  },
  tooltip: {},
  legend: {
​    data: ["销量"],
  },
  xAxis: {
​    data: ["衬衫", "羊毛衫", "雪纺衫", "裤子", "高跟鞋", "袜子"],
  },
  yAxis: {},
  series: [
​    {
​      name: "销量",
​      type: "bar",
​      data: [5, 20, 36, 10, 10, 20],
​    },
  ],
};