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/23 17:52:33 UTC

[GitHub] [echarts] biankaiwen opened a new issue, #17279: [Bug] 在设置encode为同一个列后,热力图产生空白图像

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

   ### Version
   
   5.3.3以及之前
   
   ### Link to Minimal Reproduction
   
   _No response_
   
   ### Steps to Reproduce
   
   这个例子是官网里的例子:
   `option = {
     tooltip: {
       position: "top"
     },
     animation: false,
     grid: {
       height: "50%",
       top: "10%"
     },
     xAxis: {
       type: "category",
       data: ["12a", "1a", "2a", "3a", "4a", "5a", "6a", "7a", "8a", "9a", "10a", "11a", "12p", "1p", "2p", "3p", "4p", "5p", "6p", "7p", "8p", "9p", "10p", "11p"],
       splitArea: {
         show: true
       }
     },
     yAxis: {
       type: "category",
       data: ["Saturday", "Friday", "Thursday", "Wednesday", "Tuesday", "Monday", "Sunday"],
       splitArea: {
         show: true
       }
     },
     visualMap: {
       min: 0,
       max: 10,
       calculable: true,
       orient: "horizontal",
       left: "center",
       bottom: "15%"
     },
     series: [{
       name: "Punch Card",
       type: "heatmap",
       encode: {
         x:0,
         y:1
       },
       data: [
         [11, 0, 2],
         [12, 0, 4],
         [13, 0, 1],
         [14, 0, 1],
         [15, 0, 3],
         [16, 0, 4],
         [17, 0, 6],
         [18, 0, 4],
         [19, 0, 4],
         [20, 0, 3],
         [21, 0, 3],
         [22, 0, 2],
         [23, 0, 5],
       ]
     }]
   }`
   此时热力图可以被画出,但是如果将encode设置为同一列,则产生了空白图像,如下
   `option = {
     tooltip: {
       position: "top"
     },
     animation: false,
     grid: {
       height: "50%",
       top: "10%"
     },
     xAxis: {
       type: "category",
       data: ["12a", "1a", "2a", "3a", "4a", "5a", "6a", "7a", "8a", "9a", "10a", "11a", "12p", "1p", "2p", "3p", "4p", "5p", "6p", "7p", "8p", "9p", "10p", "11p"],
       splitArea: {
         show: true
       }
     },
     yAxis: {
       type: "category",
       data: ["Saturday", "Friday", "Thursday", "Wednesday", "Tuesday", "Monday", "Sunday"],
       splitArea: {
         show: true
       }
     },
     visualMap: {
       min: 0,
       max: 10,
       calculable: true,
       orient: "horizontal",
       left: "center",
       bottom: "15%"
     },
     series: [{
       name: "Punch Card",
       type: "heatmap",
       encode: {
         x:0,
         y:0
       },
       data: [
         [11, 0, 2],
         [12, 0, 4],
         [13, 0, 1],
         [14, 0, 1],
         [15, 0, 3],
         [16, 0, 4],
         [17, 0, 6],
         [18, 0, 4],
         [19, 0, 4],
         [20, 0, 3],
         [21, 0, 3],
         [22, 0, 2],
         [23, 0, 5],
       ]
     }]
   }`
   
   
   ### Current Behavior
   
   热力图产生空白图像
   
   ### Expected Behavior
   
   热力图应该产生类似对角线的图像
   
   ### Environment
   
   ```markdown
   - OS:
   - Browser:Chrome
   - 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 #17279: [Bug] 在设置encode为同一个列后,热力图产生空白图像

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

   @biankaiwen 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] After setting encode to the same column, the heat map produces a blank image
   </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