echarts
程序员小豪
阿里云专家博主,全栈工程师,曾于蔚来、腾讯实习,现任职于某大厂,技术栈:Vue,React,Python,Java
展开
-
微信小程序使用echarts
1.下载 在https://github.com/ecomfe/echarts-for-weixin直接将一整个项目下载下来,将下载下来的项目里的ec-canvas文件复制粘贴到项目文件夹中 2.引入 在要用到的页面json文件中引入 3.使用 js文件 import * as echarts from '../../ec-canvas/echarts' // 这个是自己实际的目录 function initChart(canvas, width, height, dpr) { /..原创 2021-09-05 15:45:20 · 525 阅读 · 0 评论 -
解决微信小程序echarts图表真机预览模糊
/获取像素比 const getPixelRatio = () => { let pixelRatio = 0 wx.getSystemInfo({ success: function (res) { pixelRatio = res.pixelRatio }, fail: function () { pixelRatio = 0 .原创 2021-09-05 00:56:51 · 354 阅读 · 0 评论