You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "skypiaoyizhe (via GitHub)" <gi...@apache.org> on 2023/05/30 01:33:28 UTC

[GitHub] [echarts] skypiaoyizhe opened a new issue, #18679: [Bug] IOS 上会多了一根横线 折线图 雷达图都有这个问题

skypiaoyizhe opened a new issue, #18679:
URL: https://github.com/apache/echarts/issues/18679

   ### Version
   
   5.4.2
   
   ### Link to Minimal Reproduction
   
   https://echarts.apache.org/examples/zh/editor.html?c=line-simple
   
   ### Steps to Reproduce
   
   在ios设备上 13  13pro max 14 渲染折线图 会偶尔出现多一条横线的情况, android和pc没有这个问题
   
   option配置
   {
           grid: {
             left: '5%',
             right: '5%',
             bottom: '5%',
             top: '5%',
             containLabel: true
           },
           xAxis: {
             type: 'category',
             axisTick: {
               show: false,
               alignWithLabel: true // 保证刻度线和标签对齐
             },
             axisLine: {
               show: false // 不显示坐标轴线
             },
             axisLabel: {
               interval: dataX.length > 10 ? 2 : 0,
               // interval: Math.trunc(dataX.length / 4),
               textStyle: {
                 color: 'rgb(191, 191, 191)'
               },
               fontSize: 12,
               margin: 0,
               formatter: function(value) {
                 // value为传入方法的秒数
                 let m = Math.floor(value / 60)
                 let s = value % 60
                 // 正数
                 m = Math.abs(m)
                 s = Math.abs(s)
                 m += ''
                 s += ''
                 // 如果只有一位数,前面增加一个0
                 m = (m.length === 1) ? m : m
                 s = (s.length === 1) ? '0' + s : s
                 return m + ':' + s
               }
             },
             data: dataX // x坐标的名称
           },
           yAxis: {
             type: 'value',
             offset: 10,
             boundaryGap: true,
             max: parseInt(Math.max.apply(null, opinionData) * 1.7),
             interval: parseInt(Math.max.apply(null, opinionData) * 1.7) > 100 ? 20 : 10, // 强制设置坐标轴分割间隔
             axisLabel: {
               textStyle: {
                 color: 'rgb(191, 191, 191)'
               },
               fontSize: 12,
               margin: 0
             },
             axisLine: {
               show: false // 不显示坐标轴线
             },
             axisTick: {
               show: false
               // alignWithLabel: true // 保证刻度线和标签对齐
             },
             splitLine: {
               show: false // 不显示网格线
             }
           },
           series: [
             {
               name: '数值',
               color: '#7294FD',
               symbol: 'circle',
               symbolSize: 1,
               showAllSymbol: false,
               type: 'line',
               data: opinionData,
               areaStyle: {
                 // 显示区域颜色---渐变效果
                 color: {
                   type: 'linear',
                   x: 0,
                   y: 0,
                   x2: 0,
                   y2: 1,
                   colorStops: [{
                     offset: 0,
                     color: '#7294FD' // 0% 处的颜色
                   }, {
                     offset: 1,
                     color: '#ffffff' // 100% 处的颜色
                   }],
                   global: false // 缺省为 false
                 }
               },
               label: {
                 show: true,
                 position: 'top'
               },
               lineStyle: {
                 color: '#7294FD' // 改变折线颜色
               },
               itemStyle: {
                 color: 'rgb(125, 140, 241)', // 改变折线点的颜色
                 normal: {
                   label: {
                     show: true,
                     textStyle: {
                       color: '#7294FD',
                       fontWeight: 600,
                       fontSize: 10,
                       position: 'top' // 定位在拐点下面
                       // distance: 115 // 偏移量,举例拐点多少
                     } // 拐点文字样式
                   }
                 }
               }
             }]
         }
   
   ### Current Behavior
   
   ![image](https://github.com/apache/echarts/assets/26161407/eb979daf-91a1-4a7f-83ba-665f42fb5053)
   上下两个图标用的是同一个配置  但是一个会多一个横线 一个是正常的
   
   ### Expected Behavior
   
   没有多出来的这条横线
   
   ### Environment
   
   ```markdown
   - OS:IOS 15 16
   - Browser: Safari
   - Framework: vue
   ```
   
   
   ### Any additional comments?
   
   _No response_


-- 
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.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


Re: [I] [Bug] IOS 上会多了一根横线 折线图 雷达图都有这个问题 [echarts]

Posted by "Fueling-psx (via GitHub)" <gi...@apache.org>.
Fueling-psx commented on issue #18679:
URL: https://github.com/apache/echarts/issues/18679#issuecomment-2581701356

   我也出现了同样的问题,你是如何解决的


-- 
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


Re: [I] [Bug] IOS 上会多了一根横线 折线图 雷达图都有这个问题 [echarts]

Posted by "guava3s (via GitHub)" <gi...@apache.org>.
guava3s commented on issue #18679:
URL: https://github.com/apache/echarts/issues/18679#issuecomment-3190806415

   I also encountered a similar issue where a horizontal line appeared at the bottom of the axis. By adjusting the container height to be even, keeping the container background color consistent with the global background color, and adding 1px to the `grid.bottom` configuration, the problem was resolved. I hope this helps you.
   
   Environment Information:
   - OS: iOS 17
   - Browser: Safari
   - Framework: Vue
   
   If you have any other questions or need further assistance, please let me know.


-- 
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


[GitHub] [echarts] echarts-bot[bot] commented on issue #18679: [Bug] IOS 上会多了一根横线 折线图 雷达图都有这个问题

Posted by "echarts-bot[bot] (via GitHub)" <gi...@apache.org>.
echarts-bot[bot] commented on issue #18679:
URL: https://github.com/apache/echarts/issues/18679#issuecomment-1567699615

   @skypiaoyizhe Please provide a demo for the issue either with [Official Editor](https://echarts.apache.org/examples/editor.html), [CodePen](https://codepen.io/Ovilia/pen/dyYWXWM), [CodeSandbox](https://codesandbox.io/s/echarts-basic-example-template-mpfz1s) or [JSFiddle](https://jsfiddle.net/plainheart/e46ozpqj/7/).


-- 
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


[GitHub] [echarts] Ovilia commented on issue #18679: [Bug] IOS 上会多了一根横线 折线图 雷达图都有这个问题

Posted by "Ovilia (via GitHub)" <gi...@apache.org>.
Ovilia commented on issue #18679:
URL: https://github.com/apache/echarts/issues/18679#issuecomment-1567699507

   请提供更好的复现方式,确保社区贡献者有办法方便地复现出你的问题是你的责任


-- 
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


[GitHub] [echarts] echarts-bot[bot] commented on issue #18679: [Bug] IOS 上会多了一根横线 折线图 雷达图都有这个问题

Posted by "echarts-bot[bot] (via GitHub)" <gi...@apache.org>.
echarts-bot[bot] commented on issue #18679:
URL: https://github.com/apache/echarts/issues/18679#issuecomment-1567652016

   @skypiaoyizhe It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗
   <details><summary><b>TRANSLATED</b></summary><br>
   
   **TITLE**
   
   [Bug] There will be an extra horizontal line on IOS, the line chart and the radar chart have this problem
   
   **BODY**
   
   ### Version
   
   5.4.2
   
   ### Link to Minimal Reproduction
   
   https://echarts.apache.org/examples/zh/editor.html?c=line-simple
   
   ### Steps to Reproduce
   
   On ios devices, 13 13pro max 14 renders a line chart, and occasionally there will be an extra horizontal line, and android and pc do not have this problem
   
   option configuration
   {
           grid: {
             left: '5%',
             right: '5%',
             bottom: '5%',
             top: '5%',
             containLabel: true
           },
           xAxis: {
             type: 'category',
             axisTick: {
               show: false,
               alignWithLabel: true // Ensure that the tick marks and labels are aligned
             },
             axisLine: {
               show: false // do not display the coordinate axis
             },
             axisLabel: {
               interval: dataX.length > 10 ? 2 : 0,
               // interval: Math.trunc(dataX.length / 4),
               textStyle: {
                 color: 'rgb(191, 191, 191)'
               },
               fontSize: 12,
               margin: 0,
               formatter: function(value) {
                 // value is the number of seconds passed into the method
                 let m = Math. floor(value / 60)
                 let s = value % 60
                 // A positive number
                 m = Math.abs(m)
                 s = Math.abs(s)
                 m += ''
                 s += ''
                 // If there is only one digit, add a 0 in front
                 m = (m.length === 1) ? m : m
                 s = (s.length === 1) ? '0' + s : s
                 return m + ':' + s
               }
             },
             data: dataX // the name of the x coordinate
           },
           yAxis: {
             type: 'value',
             offset: 10,
             boundaryGap: true,
             max: parseInt(Math. max. apply(null, opinionData) * 1.7),
             interval: parseInt(Math.max.apply(null, opinionData) * 1.7) > 100 ? 20 : 10, // forcefully set the axis division interval
             axisLabel: {
               textStyle: {
                 color: 'rgb(191, 191, 191)'
               },
               fontSize: 12,
               margin: 0
             },
             axisLine: {
               show: false // do not display the coordinate axis
             },
             axisTick: {
               show: false
               // alignWithLabel: true // Ensure that the tick marks and labels are aligned
             },
             splitLine: {
               show: false // don't show gridlines
             }
           },
           series: [
             {
               name: 'Value',
               color: '#7294FD',
               symbol: 'circle',
               symbolSize: 1,
               showAllSymbol: false,
               type: 'line',
               data: opinionData,
               areaStyle: {
                 // display area color---gradient effect
                 color: {
                   type: 'linear',
                   x: 0,
                   y: 0,
                   x2: 0,
                   y2: 1,
                   colorStops: [{
                     offset: 0,
                     color: '#7294FD' // the color at 0%
                   }, {
                     offset: 1,
                     color: '#ffffff' // the color at 100%
                   }],
                   global: false // default is false
                 }
               },
               label: {
                 show: true,
                 position: 'top'
               },
               lineStyle: {
                 color: '#7294FD' // change the polyline color
               },
               itemStyle: {
                 color: 'rgb(125, 140, 241)', // change the color of the polyline points
                 normal: {
                   label: {
                     show: true,
                     textStyle: {
                       color: '#7294FD',
                       fontWeight: 600,
                       fontSize: 10,
                       position: 'top' // positioned below the inflection point
                       // distance: 115 // offset, for example, how much is the inflection point
                     } // inflection text style
                   }
                 }
               }
             }]
         }
   
   ### Current Behavior
   
   ![image](https://github.com/apache/echarts/assets/26161407/eb979daf-91a1-4a7f-83ba-665f42fb5053)
   The upper and lower icons use the same configuration, but one will have an extra horizontal line, and the other is normal
   
   ### Expected Behavior
   
   There is no extra horizontal line
   
   ### Environment
   
   ```markdown
   -OS:IOS 15 16
   -Browser: Safari
   - Framework: vue
   ```
   
   
   ### Any additional comments?
   
   _No response_
   </details>


-- 
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