Echarts的水平柱状图固定高度自适应问题


1 let myChart = echarts.init(document.getElementById('draw_probability'))
2 let autoHeight = 条数.length * 50 + 50  //条数长度
3 myChart.getDom().style.height = autoHeight + 'px'
4 myChart.resize()

参考文章:https://www.cnblogs.com/cnsyear/p/12714359.html


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM