随笔分类 - echarts
摘要:最近项目中根据项目需求,展示中国地图 一、下载echarts插件(我这里使用的是 4.9.0 版本) npm install echarts@4.9.0 --save 二、在需要使用的页面引入echarts (这里是单独封装了地图组件) components/map.vue <template> <
阅读全文
摘要:var colors =["#73C0DE","#EE6666","#FAC858","#91CC75"]; var dataVal = [120, 200, 150, 80] var option = { xAxis: { type: 'value', // 设置X轴为值轴 splitLine:
阅读全文
摘要:series: [{ type: 'bar', name: '起飞', barWidth: '20px', //柱状图的宽度 itemStyle: { normal: { //显示渐变色颜色 color: new echarts.graphic.LinearGradient(0, 0, 0, 1,
阅读全文
摘要:一。components文件下引入 barCharts.vue文件 <template> <div :class="className" :style="{height:height,width:width}" /> </template> <script> import * as echarts
阅读全文
摘要:一。components文件下新建 lineCharts.vue <template> <div :class="className" :style="{ height: height, width: width }" /> </template> <script> import * as echa
阅读全文
摘要:toolbox: { show: true, orient: 'vertical', left: 'right', top: 'center', feature: { dataView: { readOnly: false }, restore: {}, saveAsImage: {} }}, 把上
阅读全文
摘要:tooltip ={ //提示框组件 trigger: 'item', //触发类型,'item'数据项图形触发,主要在散点图,饼图等无类目轴的图表中使用。 'axis'坐标轴触发,主要在柱状图,折线图等会使用类目轴的图表中使用。 triggerOn:"mousemove", //提示框触发的条件,
阅读全文
摘要:https://blog.csdn.net/weixin_43374193/article/details/95594419 https://blog.csdn.net/harrisonz8/article/details/103183998/
阅读全文

浙公网安备 33010602011771号