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 2020/08/23 17:53:31 UTC

[GitHub] [incubator-echarts] 100pah commented on issue #13120: 矩形树图相关建议

100pah commented on issue #13120:
URL: https://github.com/apache/incubator-echarts/issues/13120#issuecomment-678804342


   echarts 中的所有系列,能接受的 `data` 中,都支持 “维度” 的概念,例如:
   ```js
   series: {
       type: 'treemap',
       data: [{
           // 可以认为是三个维度,不同维度做不同的事情
           value: [111, 223, 555]
       },
       ...
       ]
   }
   ```
   
   treemap 里有 `visualDimension` 属性来决定那个维度用于映射 “颜色” 或者 ”透明度“ 等。
   同时 `series.label.formatter` 或者 `series.encode: { label: [2, 3] }` 这类设置能决定哪个维度用于 label 。
   例如可见这个例子:
   https://echarts.apache.org/examples/zh/editor.html?c=treemap-visual


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

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