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 11:19:30 UTC

[GitHub] [echarts] ZhengRui opened a new issue, #17177: 在cartesian2d坐标系下将scatter图转换成heatmap密度图

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

   ### Version
   
   5.3.2
   
   ### Link to Minimal Reproduction
   
   _No response_
   
   ### Steps to Reproduce
   
   this is Ok since xrange [0,5] and yrange [0,4] is small
   ```typescript
   option = {
     dataset: {dimensions: ['x','y','count'], source: [[3,4,5], [5,2,3], [2,3,2]]},
     tooltip: {},
     xAxis: {
       type: 'value',
     },
     yAxis: {
       type: 'value',
     },
     visualMap: {
       min: 0,
       max: 10,
       dimension: 'count',
       inRange: {
         color: [
           '#313695',
           '#4575b4',
           '#74add1',
           '#abd9e9',
           '#e0f3f8',
           '#ffffbf',
           '#fee090',
           '#fdae61',
           '#f46d43',
           '#d73027',
           '#a50026'
         ]
       }
     },
     series: [
       {
         name: 'Gaussian',
         type: 'heatmap',
         encode: {
           x: 'x',
           y: 'y'
         }
       }
     ]
   };
   ```
   
   this is not Ok since xrange [0,1000] and yrange [0,1000] is big and each 1x1 cell will be too small to see
   ```typescript
   option = {
     dataset: {dimensions: ['x','y','count'], source: [[3,4,5], [5,2,3], [1000,1000,2]]},
     tooltip: {},
     xAxis: {
       type: 'value',
     },
     yAxis: {
       type: 'value',
     },
     visualMap: {
       min: 0,
       max: 10,
       dimension: 'count',
       inRange: {
         color: [
           '#313695',
           '#4575b4',
           '#74add1',
           '#abd9e9',
           '#e0f3f8',
           '#ffffbf',
           '#fee090',
           '#fdae61',
           '#f46d43',
           '#d73027',
           '#a50026'
         ]
       }
     },
     series: [
       {
         name: 'Gaussian',
         type: 'heatmap',
         encode: {
           x: 'x',
           y: 'y'
         }
       }
     ]
   };
   ```
   
   ### Current Behavior
   
   像这个例子[heatmap-geo](https://echarts.apache.org/examples/zh/editor.html?c=heatmap-bmap),在geo坐标系下可以,反而在笛卡尔坐标系下不行。
   
   我现在二维平面有一些稀疏分布的点,我想获得分布密度图,这要求xAxis, yAxis的type是value, 这样又带来一个问题是当xrange, yrange很大的时候,每个heatmap的1x1格子就会变得很小甚至消失。不知道有什么方法能在连续笛卡尔坐标系下画稀疏热力图。
   
   ### Expected Behavior
   
   连续坐标系下,heatmap的单元格大小非固定,并能自动根据kernal/cell shape和size来做density estimation画出密度图
   
   ### 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


Re: [I] 在cartesian2d坐标系下将scatter图转换成heatmap密度图 [echarts]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #17177:
URL: https://github.com/apache/echarts/issues/17177#issuecomment-2168761375

   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!


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


Re: [I] 在cartesian2d坐标系下将scatter图转换成heatmap密度图 [echarts]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #17177:
URL: https://github.com/apache/echarts/issues/17177#issuecomment-2153408121

   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.


-- 
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] ZhengRui commented on issue #17177: 在cartesian2d坐标系下将scatter图转换成heatmap密度图

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

   relate to this issue: https://github.com/apache/echarts/issues/13908


-- 
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 #17177: 在cartesian2d坐标系下将scatter图转换成heatmap密度图

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

   @ZhengRui 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**
   
   Convert scatter map to heatmap density map in cartesian2d coordinate system
   </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


Re: [I] 在cartesian2d坐标系下将scatter图转换成heatmap密度图 [echarts]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #17177: 在cartesian2d坐标系下将scatter图转换成heatmap密度图
URL: https://github.com/apache/echarts/issues/17177


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