echarts数据间距
时间: 2023-08-24 09:04:17 浏览: 151
根据引用\[3\]中的内容,如果想要实现echarts数据间距不等的效果,可以通过补点的方式来实现。举例来说,如果原始的横坐标值是\[1, 2, 5\],而实际上2-5的间距是1-2间距的3倍,那么可以在2和5之间补充两个空点,最终的横坐标值就变成了\[1, 2, 3, 4, 5\]。这样就实现了不等间距的效果。最后只需要展示1、2、5的刻度值和分割线即可。\[3\]
#### 引用[.reference_title]
- *1* [echarts图例分页和图例之间的间距](https://blog.csdn.net/Sweet_Waf/article/details/106873051)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* *3* [Echarts 配置不等间距坐标轴刻度方案记录](https://blog.csdn.net/qq_35459724/article/details/124058866)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文