[Bug] If use inside-inner, your default color modify to black when strokeOpacity > 0 (PieChart)
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 1.8k
- Forks
- 221
- Avg merge
- 1d 6h
- Merged PRs (30d)
- 26
Description
Version
2.0.*
Link to Minimal Reproduction
Steps to Reproduce
label: {
visible: true,
formatter: '{percent}%',
position: 'inside-inner',
// offsetRadius: 25,
rotate: false,
line: { visible: true },
style: {
backgroundOpacity: 0,
fillOpacity: 1,
lineWidth: 3,
strokeOpacity: 1,
stroke: '#ffffff',
fontSize: 14,
fontWeight: 'bold',
// dy: 20,
// dx: -10
}
},
Current Behavior
mark as black
Expected Behavior
mark as segment colors
Environment
- OS:
- Browser:
- Framework:
Any additional comments?
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked VChart playground reproduction and the PieChart label configuration using position inside-inner and strokeOpacity: 1. Trace how label styles determine the rendered fill or stroke, then verify that the label uses its segment color instead of black while preserving the requested stroke settings.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- data-visualization
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100