Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: new chart type - heatmap #1370

Merged
merged 15 commits into from
Aug 6, 2020
Merged

feat: new chart type - heatmap #1370

merged 15 commits into from
Aug 6, 2020

Conversation

neoddish
Copy link
Member

@neoddish neoddish commented Jul 30, 2020

  • new chart type: Heatmap

To discuss

  • getMarker in custom shape ?

heatmap 的图例应该不包含离散类型,可以不需要。

  • size legend lost

size、color 两个图例需要同时存在吗?: 需要以后 G2 解决,先取消图例

  • size mapping

在 G2 的 repo 开了一个 关于 size 直接映射到面积的issue
如果确认的话,我这部分映射要稍微改下(目前是和 G2 同步的,大多是size映射到半径)

@neoddish neoddish requested review from lessmost and hustcc July 30, 2020 10:29
@auto-add-label auto-add-label bot added the WIP label Jul 30, 2020
Copy link

@tests-checker tests-checker bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please add tests to make sure this change works as expected?

@antvis antvis deleted a comment from lgtm-com bot Aug 1, 2020
@neoddish neoddish removed the WIP label Aug 2, 2020
@neoddish neoddish changed the title WIP: heatmap feat: new chart type - heatmap Aug 2, 2020
@auto-add-label auto-add-label bot added the enhancement New feature or request label Aug 2, 2020
@neoddish
Copy link
Member Author

neoddish commented Aug 2, 2020

@hustcc @zqLu 有没有什么问题我再改

src/plots/heatmap/adaptor.ts Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
@simaQ
Copy link

simaQ commented Aug 5, 2020

色块图的图例:size/color 是否同时展示这个,建议先按照 G2 默认的规则来,一般只要符合映射就会默认展示的。至于后续的展示方案可以再确定,很有可能需要定制

src/plots/heatmap/types.ts Outdated Show resolved Hide resolved
* rename `shape` to `shapeType` to be consistent with 1.x
* optimized the implementation of heatmap adaptor
* add tuple type function
* add test cases size-spec
@hustcc hustcc self-requested a review August 6, 2020 09:20
@hustcc hustcc merged commit ddbcf19 into v2 Aug 6, 2020
@hustcc hustcc deleted the v2-heatmap branch August 6, 2020 09:21
BBSQQ pushed a commit that referenced this pull request Aug 25, 2020
* feat: new chart type - heatmap

* feat: heatmap axis and shape

* feat: shape and size

* feat: new chart type - heatmap

* feat: heatmap axis and shape

* feat: shape and size

* feat: heatmapStyle

* fix: merge v2

* fix: resolve test case

* fix: value map to size

* feat: sizeRatio and some optimization

* rename `shape` to `shapeType` to be consistent with 1.x
* optimized the implementation of heatmap adaptor
* add tuple type function
* add test cases size-spec

* fix: temporarily cancel legend

* fix: test cases with semantic test dataset
BBSQQ pushed a commit that referenced this pull request Aug 25, 2020
* feat: new chart type - heatmap

* feat: heatmap axis and shape

* feat: shape and size

* feat: new chart type - heatmap

* feat: heatmap axis and shape

* feat: shape and size

* feat: heatmapStyle

* fix: merge v2

* fix: resolve test case

* fix: value map to size

* feat: sizeRatio and some optimization

* rename `shape` to `shapeType` to be consistent with 1.x
* optimized the implementation of heatmap adaptor
* add tuple type function
* add test cases size-spec

* fix: temporarily cancel legend

* fix: test cases with semantic test dataset
BBSQQ pushed a commit that referenced this pull request Aug 25, 2020
* feat: new chart type - heatmap

* feat: heatmap axis and shape

* feat: shape and size

* feat: new chart type - heatmap

* feat: heatmap axis and shape

* feat: shape and size

* feat: heatmapStyle

* fix: merge v2

* fix: resolve test case

* fix: value map to size

* feat: sizeRatio and some optimization

* rename `shape` to `shapeType` to be consistent with 1.x
* optimized the implementation of heatmap adaptor
* add tuple type function
* add test cases size-spec

* fix: temporarily cancel legend

* fix: test cases with semantic test dataset
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request PR: merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants