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/06/07 02:42:16 UTC

[GitHub] [echarts] dandanyajin opened a new issue, #17166: [Bug]

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

   ### Version
   
   5.2.2
   
   ### Link to Minimal Reproduction
   
   _No response_
   
   ### Steps to Reproduce
   
   直接打开官网 ,将以下代码复制粘贴到 折线图的第一个实例
   
   
   option = {
     title: {
       text: 'Rainfall and Flow Relationship',
       left: 'center'
     },
     grid: {
       bottom: 80
     },
     toolbox: {
       feature: {
         dataZoom: {
           yAxisIndex: 'none'
         },
         restore: {},
         saveAsImage: {}
       }
     },
     tooltip: {
       trigger: 'axis',
       axisPointer: {
         type: 'cross',
         // animation: false,
         label: {
           backgroundColor: '#505765'
         }
       }
     },
     legend: {
       data: ['Flow', 'Rainfall'],
       left: 10
     },
     dataZoom: [
       {
         show: true,
         realtime: true,
         start: 65,
         end: 85
       },
       {
         type: 'inside',
         realtime: true,
         start: 65,
         end: 85
       }
     ],
     xAxis: [
       {
         type: 'category',
         // boundaryGap: false,
         // axisLine: { onZero: false },
         // prettier-ignore
         data: [
                   '2009/6/12 2:00'].map(function (str) {
                   return str.replace(' ', '\n');
               })
       }
     ],
     yAxis: [
       {
         name: 'Flow(m^3/s)',
         scale:true,
         type: 'value'
       },
       {
         name: 'Rainfall(mm)',
         scale:true,
         alignTicks: true,
         type: 'value',
         minInterval: 1
       }
     ],
     series: [
       {
         name: 'Flow',
         type: 'line',
         // areaStyle: {},
         lineStyle: {
           width: 1
         },
         emphasis: {
           focus: 'series'
         },
         data: [1.8]
       },{
         name: 'Fl',
         type: 'line',
         // areaStyle: {},
         lineStyle: {
           width: 1
         },
         emphasis: {
           focus: 'series'
         },
         data: [1.87]
       },
       {
         name: 'Rainfall',
         type: 'line',
         yAxisIndex: 1,
         // areaStyle: {},
         lineStyle: {
           width: 1
         },
         emphasis: {
           focus: 'series'
         },
         data: [25.61]
       },
       {
         name: 'Rainf',
         type: 'line',
         yAxisIndex: 1,
         // areaStyle: {},
         lineStyle: {
           width: 1
         },
         emphasis: {
           focus: 'series'
         },
         data: [25.41]
       }
     ]
   };
   
   ### Current Behavior
   
   纵坐标数字小数点后会出现很多位数
   
   ### Expected Behavior
   
   小数点后不要出现这么多位数
   
   ### Environment
   
   ```markdown
   - OS:
   - Browser:
   - Framework:
   ```
   
   
   ### 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


[GitHub] [echarts] echarts-bot[bot] commented on issue #17166: [Bug]

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #17166:
URL: https://github.com/apache/echarts/issues/17166#issuecomment-1148131624

   I'm sorry to close this issue for it lacks the necessary title. Please provide **a _descriptive_ and as _concise_ as possible title to describe your problems or requests** and then the maintainers or I will reopen this issue.
   
   Every good bug report or feature request starts with a title. Your issue title is a critical element as it's the first thing maintainers see.
   
   A good issue title makes it easier for maintainers to understand what the issue is, easily locate it, and know what steps they'll need to take to fix it.
   
   Moreover, it's better to include keywords, as this makes it easier to find the issue self and similar issues in searches.


-- 
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] closed issue #17166: [Bug]

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] closed issue #17166: [Bug] 
URL: https://github.com/apache/echarts/issues/17166


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