![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
echarts
小李吖
这个作者很懒,什么都没留下…
展开
-
微信小程序使用echarts饼图显示百分比
// packageSesame/pages/dashboard/dashboard.jsimport * as echarts from '../../../utils/ec-canvas/echarts.js'const app = getApp();const { getDashboard } = require('../../service/reportForm.js').RFurl;const HttpRequest = require('../../../utils/http.js'.原创 2020-06-29 11:03:40 · 2711 阅读 · 0 评论 -
微信小程序使用echarts异步请求数据
// packageSesame/pages/dashboard/dashboard.js// 引入echatrtsimport * as echarts from '../../../utils/ec-canvas/echarts.js'const app = getApp();// 引入http接口const { getDashboard } = require('../../service/reportForm.js').RFurl;const HttpRequest = require原创 2020-06-29 10:35:56 · 1156 阅读 · 0 评论 -
微信小程序使用echarts模糊
this.goodsEchartsComponnet.init((canvas, width, height, dpr) => { // 初始化图表 const chart = echarts.init(canvas, null, { width: width, height: height, devicePixelRatio: dpr // 加上这一行即可不模糊 }); this.setOptionGoods(chart); return chart;}原创 2020-06-29 10:29:21 · 1714 阅读 · 1 评论 -
echarts legend自定义样式固定宽度
// 品类销售额drawCategorySales() { var that = this; let categorySalesChart = this.$echarts.init( document.getElementById("categorySalesChart") ); // 绘制图表 categorySalesChart.setOption({ title: { left: "center", text: "品类销售额", .原创 2020-06-28 10:57:56 · 7605 阅读 · 2 评论 -
elementUI-dialog中使用echarts报错
打开el_dialog时,dom元素还没有渲染完成,可使用Vue.nextTick解决问题openDialog() { this.dialogVisible = true; this.$nextTick(() => { this.drawCategorySales(); this.drawBar(); });},参考文章:https://blog.csdn.net/qq_26811445/article/details/86596914...原创 2020-06-17 14:00:50 · 1720 阅读 · 0 评论 -
vue echarts引入方式
vue两种引入echarts的方式1.main.js全局引入// 引入echartsimport echarts from 'echarts'Vue.prototype.$echarts = echarts2.main.js按需引入let echarts = require('echarts/lib/echarts')// 引入折线图等组件require('echarts/lib/chart/bar')require('echarts/lib/chart/map')require('原创 2020-05-14 13:52:25 · 314 阅读 · 0 评论 -
vue echarts中国地图
vue echarts中国地图效果图代码<template> <div> <div id="myChartChina" :style="{width: '550px', height: '400px'}"></div> </div></template><script>import geoData from "../../../../node_modules/echarts/map/json/china原创 2020-05-14 13:32:24 · 650 阅读 · 1 评论 -
vue echarts区域缩放
echarts区域缩放dataZoom原创 2020-05-14 11:29:55 · 1012 阅读 · 1 评论