antvis / antvis/G2Plot

🥰 [FEATURE] Sunburst Sectors Filling

Open
#3,502 0 comments 2 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
2.7k
Forks
591
PR merge metrics
No merged PRs in 30d

Description

### 🥰 Features description [Please make everyone to understand it]

Add sectors filling, for example, displaying the completion of something. Each sector (child in data) will have Estimate and Fact value, which can be displayed on chart sector. Actualy, we can show oveflow too, if fact is grater than estimate.

### 🏞 What problem does this feature solve

This feature will allow us to show percentage complete of anything.

### 🧐 What does the proposed API look like
```
{
"label": "类别 1.1.1.1.1",
"children": null,
"uv": 1,
"estimate_sum": 1,
"fact_sum":0.5,
"count": 0
}
```

### 🚑 Any additional [like screenshots]
I made my version using additional D3-Hierarchy example with additional code. (I mentioned it in my old-old feature request https://github.com/antvis/G2Plot/issues/2493).
Here's a little example. Child has Estimate time and Work time (in task-tracking system, for context), Sunburst shows tasks effictivity, complition and overflow (orange filled subsector). Pattern's shows fill - with pattern is a fact, without is an estimate.
![image](https://user-images.githubusercontent.com/34096555/226875570-b27f06be-a4fa-4a9d-86b2-e77102aa6541.png)

Contributor guide

Open the contributing guide

Research direction

Review the proposed data shape and the linked D3-Hierarchy example, then compare them with the current Sunburst implementation in G2Plot. The work is done when child sectors can show estimate and fact completion, including overflow when fact exceeds estimate, with the requested visual distinction.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
data-visualization
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.