You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2022/11/16 08:48:08 UTC

[GitHub] [echarts] 2016011969sunyifang commented on issue #14455: Line chart with multiple Y axies and multiple bottom X axies may causes X axies offset error.(当有双x轴双y轴时,第二条x轴轴体偏移失效)

2016011969sunyifang commented on issue #14455:
URL: https://github.com/apache/echarts/issues/14455#issuecomment-1316615682

   > ### 版本
   > 5.0.2
   > 
   > ### 重现步骤
   > 1.设置2个Y轴。2.设置2个X轴,x轴设置的第二个{位置:“底部”,偏移量:40 }
   > 
   > 示例选项代码:option = {legend: {data: ['蒸发量', '降水量', '平均温度']},xAxis: [{type: 'category',boundaryGap: false,data: ['1月', '2月', '3月', '4月', '5月']},{type: 'category',position: 'bottom',offset: 40,show: true,data: ['31天', '28天', '31天', '30天']}],yAxis: [{类型:“值”,名称:“蒸发量”,最小值:0,最大值:250,位置:“右”,轴线:{显示:真,线样式:{颜色:颜色[0]}},轴标签:{格式化程序:'{值} ml'}},{类型:“值”,名称:“温度”,最小值:0,最大值:25,位置:”left',axisLine: {show: true,lineStyle: {color: colors[2]}},axisLabel: {formatter: '{value} °C'}}],series: [{name: '蒸发量',type: 'line',data: [2.0, 4.9, 7.0, 23.2, 25.6]},{name: '平均温度',type: 'line',y轴指数: 1,数据: [2.0, 2.2, 3.3, 4.5, 6.3] } ] };
   > 
   > ### 期待什么?
   > 第二个 xAxis 偏移量 40px。
   > 
   > ### 到底发生了什么?
   > 只有第二个 xAxis 的标签偏移。x轴的线不偏移。两个 xAxies 重合。
   > 
   > 我如何遇到此错误的一些背景/上下文:统计 2 个 xAxis 节点之间的间隔时间。
   
   大佬这个问题解决了么  我也遇到了 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org