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 2021/12/31 08:31:10 UTC

[GitHub] [echarts] Colin3191 opened a new issue #16310: [Bug] 散点图(scatter)里series.data里的维度为null时图表显示异常

Colin3191 opened a new issue #16310:
URL: https://github.com/apache/echarts/issues/16310


   ### Version
   
   5.2.2
   
   ### Link to Minimal Reproduction
   
   https://codesandbox.io/s/elated-austin-3dg83
   
   ### Steps to Reproduce
   
   ```
   option = {
     series: [
       {
         type: 'scatter',
         data: [['华北', '公司', 524,]],
         name: '524'
       },
       {
         type: 'scatter',
         data: [[null, null, 0]],
         name: '0'
       }
     ],
     xAxis: [
       {
         data: ['东北', '华北', '华东', '西北', '西南', '中南', null]
       }
     ],
     yAxis: [
       
       {
         data: ['公司', '消费者', '小型企业', null]
       }
     ]
   };
   ```
   
   ### Current Behavior
   
   seies.data里的维度为null时,点的位置不对(没有和x,y轴的null对应)。
   
   ### Expected Behavior
   
   显示在右上角,和x,y轴的null对应。
   
   ### Environment
   
   _No response_
   
   ### 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

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] SnailSword commented on issue #16310: [Bug] 散点图(scatter)里series.data里的维度为null时图表显示异常

Posted by GitBox <gi...@apache.org>.
SnailSword commented on issue #16310:
URL: https://github.com/apache/echarts/issues/16310#issuecomment-1003408402


   You can replace `null` with string `'null'`.  (But this is not recommended.)


-- 
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 #16310: [Bug] 散点图(scatter)里series.data里的维度为null时图表显示异常

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


   @Colin3191 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] The chart shows an exception when the dimension in series.data is null in scatter
   
   **BODY**
   
   ### Version
   
   5.2.2
   
   ### Link to Minimal Reproduction
   
   https://codesandbox.io/s/elated-austin-3dg83
   
   ### Steps to Reproduce
   
   ```
   option = {
     series: [
       {
         type: 'scatter',
         data: [['North China', 'Company', 524,]],
         name: '524'
       },
       {
         type: 'scatter',
         data: [[null, null, 0]],
         name: '0'
       }
     ],
     xAxis: [
       {
         data: ['Northeast', 'North China', 'East China', 'Northwest', 'Southwest', 'Central South', null]
       }
     ],
     yAxis: [
       
   {
         data: ['Company', 'Consumer', 'Small Business', null]
       }
     ]
   };
   ```
   
   ### Current Behavior
   
   seies.data里的维度为null时,点的位置不对(没有和x,y轴的null对应)。
   
   ### Expected Behavior
   
   Displayed in the upper right corner, corresponding to null of the x,y axis.
   
   ### Environment
   
   _No response_
   
   ### 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