echarts 折线图yAxis不显示
时间: 2023-10-02 09:06:18 浏览: 151
使用Echarts显示最近一月销量折线图.rar
为了使Echarts折线图的yAxis显示,需要确保yAxis的配置项正确设置。根据引用中的代码,yAxis的配置项为空,这可能导致yAxis不显示。可以尝试添加相关配置项,如设置yAxis的type为'value'来指定数值型的坐标轴,或者设置yAxis的min和max来指定坐标轴的最小值和最大值。例如:
```
yAxis: {
type: 'value',
min: 0,
max: 40
}
```
另外,确保引用的Echarts版本正确,并且在初始化Echarts实例时,检查DOM元素的大小是否正确设置。如果以上方法仍然无法解决问题,可以提供更多的代码和错误信息以便更好地帮助您解决问题。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [ECharts 折线图显示折线点数据并自定义折线点数据,同时不显示折线点](https://blog.csdn.net/qq_38974638/article/details/108969176)[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^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [echarts折线图设置label后不显示数值](https://blog.csdn.net/zm_960911/article/details/123417161)[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^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [echarts-折线图不显示圆点只显示值](https://blog.csdn.net/qq_42611074/article/details/125760107)[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^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文