antvis / antvis/F2

饼图changeData,前后数据顺序不同时,扇形着色和legend着色对不上

Open
#672 0 comments 0 reactions 1 assignee Claimed by @simaQ View on GitHub
Dominant language
JavaScript
Stars
8k
Forks
637
PR merge metrics
No merged PRs in 30d

Description

- [ ] I have searched the [issues](https://github.com/antvis/f2/issues) of this repository and believe that this is not a duplicate.

### Reproduction link
[https://codepen.io/dabennn/pen/vYYLKYb](https://codepen.io/dabennn/pen/vYYLKYb)

### Steps to reproduce
用changeData更新图表数据时,前后数据顺序发生变化的情况下,饼图的着色和legend的着色对不上。legend更新成了新的顺序,饼图没有更新
![image](https://user-images.githubusercontent.com/21017292/66806644-a1abd980-ef5a-11e9-8ede-ecbceca3b9ea.png)

### What is expected?
饼图着色也能更新成和legend一样

### What is actually happening?
饼图着色没有更新,需要调用repaint进行更新

| Environment | Info |
|---|---|
| f2 | 3.4.1 |
| System | macos high sierra 10.13.4 |
| Browser | 5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36 |

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.