We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
折线图的markLine,当只有一条数据(不管是坐标轴类型时类目轴还是time轴)时,会出现markLine不能从最左端绘制到最右端的问题
1.设置只有一条数据的series,并且type设置成'line'或者‘bar' 2.设置markLine,设为平均数,或者手动设置某一数值的markLine,从0开始到x坐标的最大值结束; 3.setOption能看到绘制效果
虽然数据只有一条,但是markLine仍然能够从最左端绘制到最右端
可能绘制的起点和终点有问题
option = { xAxis : [ { type : 'category', boundaryGap : false, data : ['周一','周二','周三','周四','周五','周六','周日'] } ], yAxis : [ { type : 'value', axisLabel : { formatter: '{value} °C' } } ], series : [ { name:'最高气温', type:'line', data:[11], markLine : { data : [ {type : 'average', name: '平均值'} ] } } ] }
The text was updated successfully, but these errors were encountered:
3b9497f 中已经修复这个问题
Sorry, something went wrong.
No branches or pull requests
问题简述 (One-line summary)
折线图的markLine,当只有一条数据(不管是坐标轴类型时类目轴还是time轴)时,会出现markLine不能从最左端绘制到最右端的问题
版本及环境 (Version & Environment)
重现步骤 (Steps to reproduce)
1.设置只有一条数据的series,并且type设置成'line'或者‘bar'
2.设置markLine,设为平均数,或者手动设置某一数值的markLine,从0开始到x坐标的最大值结束;
3.setOption能看到绘制效果
期望结果 (Expected behaviour)
虽然数据只有一条,但是markLine仍然能够从最左端绘制到最右端
可能哪里有问题 (What went wrong)
可能绘制的起点和终点有问题
ECharts配置项 (ECharts option)
其他信息 (Other comments)
The text was updated successfully, but these errors were encountered: