echarts icon indicating copy to clipboard operation
echarts copied to clipboard

echarts 4 折线图最后一个数据显示不全,使用showMaxLabel与showMinLabel仍无效

Open yangshan010 opened this issue 8 years ago • 4 comments

1:在移动端折线图最后一个数据始终显示不全。 2:已经使用了showMaxLabel与守望MinLabel # 3: image

Version & Environment [版本及环境]

  • ECharts version [ECharts 版本]: 4.04
  • Browser version [浏览器类型和版本]: chrome 64.0.3282.186
  • OS Version [操作系统类型和版本]: win7

Expected behaviour [期望结果]

可以正常显示

ECharts option [ECharts配置项]

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 [其他信息]

yangshan010 avatar Apr 17 '18 02:04 yangshan010

3.7.1可以,之后的版本都不行了

raonian avatar Apr 17 '18 07:04 raonian

更新最新版本就行了, "echarts": "^4.2.1" 亲测可行

Wiki1991 avatar Apr 02 '19 02:04 Wiki1991

This issue has been automatically marked as stale because it did not have recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this issue.

github-actions[bot] avatar Sep 03 '21 21:09 github-actions[bot]

This issue has been automatically closed because it did not have recent activity. If this remains to be a problem with the latest version of Apache ECharts, please open a new issue and link this to it. Thanks!

github-actions[bot] avatar Sep 11 '21 21:09 github-actions[bot]