echarts入门(axios请求数据)
1. npm 安装 ECharts
npm install echarts --save
2. 下面的是基本结构,里面的数据是静态的(写死的,不是通过接口请求到的)
<template>
<div>
<div id="echart"
style="width : 80%;height : 300px"></div>
</div>
</template>
<script>
import echarts from 'echarts';
export default {
data(){