上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 31 下一页
摘要: ![](https://img2023.cnblogs.com/blog/1950214/202308/1950214-20230822150442568-1521728055.png) ``` option = { title: { text: '行情走势图', x: 'center', alig 阅读全文
posted @ 2023-08-22 15:04 ZerlinM 阅读(278) 评论(0) 推荐(0)
摘要: ## 实现效果 ![](https://img2023.cnblogs.com/blog/1950214/202308/1950214-20230822110418807-1850369621.gif) ## 代码 本文使用react实现,其他同理 index.js ``` import React 阅读全文
posted @ 2023-08-22 11:04 ZerlinM 阅读(96) 评论(0) 推荐(0)
摘要: ## 定义和用法 table-layout 属性用来显示表格单元格、行、列的算法规则。 **table-layout有三个属性值:auto、fixed、inherit。** * **fixed:固定表格布局** 固定表格布局与自动表格布局相比,允许浏览器更快地对表格进行布局。 **在固定表格布局中, 阅读全文
posted @ 2023-08-21 14:00 ZerlinM 阅读(1420) 评论(0) 推荐(0)
摘要: 使用ec-canvas展示echarts图表,但是在实际操作中,偶现echarts空白问题。 ## 解决 ``` const getData = async() => { const data = await fetchData(); // 调用接口获取数据 const option = { // 阅读全文
posted @ 2023-08-16 10:22 ZerlinM 阅读(1371) 评论(0) 推荐(0)
摘要: 高德地图 API 在官方示例中 marker的content使用的字符串 如'<div>123</div>' 但我们希望使用reactDom更方便。 调用initPoint铺点,当点击该点时,弹出气泡信息。 const [currentData, setCurrentData] = useState 阅读全文
posted @ 2023-08-14 14:47 ZerlinM 阅读(324) 评论(0) 推荐(0)
摘要: [madeapie](https://madeapie.com/#/) [MCChart](http://echarts.zhangmuchen.top/#/index) [ppchart](http://ppchart.com/#/) [makeapie](https://www.makeapie 阅读全文
posted @ 2023-08-01 17:19 ZerlinM 阅读(596) 评论(0) 推荐(0)
摘要: ## 问题 当图表中的 legend 过多的时候,就需要考虑 legend 进行换行,但是换行之后,图例就会无法对齐。 ## 解决 ``` legend: { icon: "rect", width: "80%", itemWidth: 6, itemHeight: 6, bottom: 0, te 阅读全文
posted @ 2023-08-01 12:43 ZerlinM 阅读(1362) 评论(0) 推荐(0)
摘要: 微信小程序中动态设置了echarts的高度,但是canvas变形,并没有重新resize ## 原因 chart获取不到父组件的宽高,小程序里获取宽高用的是 wx.createSelectorQuery() ,echarts里resize的时候,并没有调用这个API,肯定无法重置宽高。 ## 解决 阅读全文
posted @ 2023-08-01 10:58 ZerlinM 阅读(782) 评论(0) 推荐(0)
摘要: ##问题描述 将其他项目导致自己的电脑上运行时,出现以下编译错误。 ``` Execution failed for task ':app:stripDebugDebugSymbols'. > NDK at /Users/ado/Library/Android/sdk/ndk-bundle did 阅读全文
posted @ 2023-07-24 09:27 ZerlinM 阅读(3208) 评论(0) 推荐(0)
摘要: ## 问题描述 使用uni app模板开发微信小程序过程中引入高德地图小程序插件失败, 先看代码: ``` import amap from "@/lib/amap-wx.130.js";//引入高德地图小程序插件 ``` 报错: `SyntaxError: The requested module 阅读全文
posted @ 2023-07-21 09:08 ZerlinM 阅读(1313) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 31 下一页