You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@echarts.apache.org by GitBox <gi...@apache.org> on 2018/04/17 02:00:05 UTC

[GitHub] yangshan010 opened a new issue #8171: echarts 4 折线图最后一个数据显示不全,使用showMaxLabel与showMinLabel仍无效

yangshan010 opened a new issue #8171: echarts 4 折线图最后一个数据显示不全,使用showMaxLabel与showMinLabel仍无效
URL: https://github.com/apache/incubator-echarts/issues/8171
 
 
   1:在移动端折线图最后一个数据始终显示不全。
   2:已经使用了showMaxLabel与守望MinLabel #
   3:
   ![image](https://user-images.githubusercontent.com/20994312/38844393-dd556c5a-4225-11e8-92b6-69fc5ccd80fb.png)
   
   
   
   
   
   ### Version & Environment [版本及环境]
   + ECharts version [ECharts 版本]: 4.04
   + Browser version [浏览器类型和版本]: chrome 64.0.3282.186
   + OS Version [操作系统类型和版本]: win7 
   
   
   
   
   
   ### Expected behaviour [期望结果]
   
   可以正常显示
   
   
   
   ### ECharts option [ECharts配置项]
   <!-- Copy and paste your 'echarts option' here. -->
   <!-- [下方贴你的option,注意不要删掉下方 ```javascript 和 尾部的 ``` 字样。最好是我们能够直接运行的 option。如何得到能运行的 option 参见上方的 guidelines for contributing] -->
   ```javascript
   option = {
    backgroundColor: 'white',
           color: ['#38b4ee'],
           tooltip: {
             confine: true
           },
           grid: {
             left: '5%',
             right: '22%',
             // bottom: '23%',
             width: '90%'
           },
           toolbox: {
             feature: {
               saveAsImage: {}
             }
           },
           tooltip: {
             trigger: 'axis'
           },
   
           xAxis: {
             // x轴
             type: 'category',
             boundaryGap: false,
             axisTick: {
               show: false
             },
             axisLine: {
               show: false
             },
             axisLabel: {
               textStyle: {
                 color: 'black'
               },
               interval: 0,
               length: 1,
               showMinLabel: true,
               showMaxLabel: true
             },
             splitLine: {
               //网格线
               show: false,
               lineStyle: {
                 color: ['transparent']
               }
             },
             data: ['03.02', '03.03', '03.04', '03.05', '03.06', '03.07', '03.08']
           },
           yAxis: {
             // y轴
             min: function(value) {
               return value.min - 200;
             },
             max: '4200',
             nameGap: 1,
             axisTick: {
               show: false
             },
             axisLine: {
               show: false
               //    onZero:false
             },
             axisLabel: {
               textStyle: {
                 color: 'transparent'
               }
             },
             splitLine: {
               //网格线
               show: false,
               lineStyle: {
                 color: ['#23303f'],
                 type: 'solid'
               }
             }
           },
           series: [
             {
               name: 'movie',
               type: 'line',
               symbol: 'circle',
               smooth: false,
               symbolSize: 10,
               showSymbol: true,
               showAllSymbol: true,
               color: ['#4385F5'],
               data: ['3000', '3800', '3400', '4200', '3200', '3700', '3600'],
               label: {
                 normal: {
                   show: true,
                   position: 'top' //值显示
                 }
               }
             }
           ]
   }
   
   ```
   
   
   
   
   ### Other comments [其他信息]
   <!-- For example: Screenshot or Online demo -->
   <!-- [例如,截图或线上实例 (JSFiddle/JSBin/Codepen)] -->
   
   

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

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