SamZSL edited a comment on issue #5538: 把echarts图表 用 transform 翻转90度后,手机端的dataZoom失效 URL: https://github.com/apache/incubator-echarts/issues/5538#issuecomment-468187054 @cjzhang1230 @Dowgen 我变通了一下,用echart的inverse属性来进行y轴反转,在将x轴的position设置为top,最后将原先x轴的值付给y轴,y轴的值赋给x轴,变相的实现横向显示,这样不会影响缩放,希望对你们有所帮助:,代码如下:` xAxis: { type: 'value', splitLine: { show: false }, boundaryGap: true, position:'top', axisLabel:{ rotate:90 } }, yAxis: { type: 'category', axisLine : {onZero: false}, data: xData, boundaryGap: true, splitLine: { show: false }, axisLabel:{ rotate:-90, interval:200 }, inverse: true },``
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
