You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "echarts-bot[bot] (via GitHub)" <gi...@apache.org> on 2023/09/01 02:36:51 UTC
[GitHub] [echarts] echarts-bot[bot] commented on issue #19066: [Feature] 饼图各部分之间提供间隙支持
echarts-bot[bot] commented on issue #19066:
URL: https://github.com/apache/echarts/issues/19066#issuecomment-1702033695
@zhouzhili It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗
<details><summary><b>TRANSLATED</b></summary><br>
**TITLE**
[Feature] Provides clearance support between parts of a pie chart
**BODY**
### What problem does this feature solve?
Add gap attribute support to the itemStyle of the pie chart so that the gap can be configured. This design is currently very common, but there is no official way to directly configure the gap.
At present, both solutions are seen to be flawed,
One is to use borderColor and borderWidth, but it will not be rendered when the transparent color is configured. When the background panel is a gradient color or a picture, this method cannot meet the demand
The second is to use itemStyle: { color: 'transparent' } in the example, but when you click the legend to close an item, the interval still exists, and it will become larger and larger, and the experience does not meet the requirements.

My example: [Gap pie chart](https://echarts.apache.org/examples/zh/editor.html?c=line-simple&code=G4QwTgBAJiAuICkDOB7AdhAvBA3gKAmgEsBbAUzSSPSQC4IBtAcgAcwUoBXAY1iYBoITGPACMTALr8CEVJzDcy9BjML5CGiGw49Y9 JoG8fQNHqgADkBqjSJCj6ogEwAGCwF9pm9Zq3suvfccAxcuae0HDW9I5Omq4WHpraPnpCxoCQckGeVjYQogCskRrR7haE8bp-RoDbammaGfQAHHmEBRqxGiW-SUaAKXJVlqGZAOwNEE1qRV46 7YZGgLaKPYQ1WaJDI7hjbYlTgMBycyFitgDMyzISeM4A3HigkFZYjDI4EKAANpxKWY6CaCDkZWbDbrhHiAXm9agA6ABsn2-byYgBfUwCZaQIIERYGQSABlWAATyebwe3BQTxQYH0sDAIEoLHAFD4w3 -9yBIPCDgc0J-HUCDLUTNedUh7NhiORqPRWNx-IghOJpKE5MpSGpYFpTHpTQezz5WVygrKqW5gM1oIFEC-HPhSMEosxOLx9AJRJJZIpVJpaDpzgNGuBWvquo6lS9vONUNNMP0wqtaJtEvtUsdsqY8t dyvdqs96uD9EG_qm3SDRv5obNQstKOj4rtgOlTrlLsVbo9BZ9b1ES1zxlmzeZEHBxfDQkj5bFtslNcTyYbqabmcLWUOHaM227vpNJYjZetlbHCedCqVKrVeAkFyuEDxAHMKFAACKhW5WZDoMF yBRkMEkEAsAAUSEwAD4kDBdYAEo8BQFhYGoDBsA8AAjEBuAAawvdhODQKAAGFdwAIgAYlZBwcIBKwkDIRIHjBKjH1QDAmlgFAiSglh7QsJAAAsUAAd3oAAzYEyJkejUSrFoOO4- hyVeAFCDRAAPDYejxXiNkOABSHoGJYoRcg0mSIHk2AAEEniIC80H0RR3TIMBNLIBS
ADUbKg7hgRMsyLKEKy0Vs_TDO3VjgnHfQ8N4sLwp2Xj0FgAB1MgzPYjY4KJKBIuijEiAAL1hUQwWyZUSDS 90ADFviIJ5sX0JgXH0pBODgwyqtq-r_NHQLPGCoRQvCsKiti-KL0S_RkqeVL9MIKL3Qy7LbFqcaIEm2BSpIcrKqEaqoiEgFL2vdrCHEniDLAaSLCIQlPKYNCMIAJTIXgehJIhaX0YBnLO4ElLIFT9A hBw9IsLTLNpGyejABLEjZCxktgBiSHoSHNGBDz9GUvh9OtABxL96GyfSorAT8YZspqLCsWgdowu94D8-zYAC1Ygt3IQwAvBDv32UNRH6fZBDsbIABZBFEEC-um1s5rGRa4vB4aUr65bVpJ4Iwe4di qpq07owACQGoasgRjRrRiogoFgNWIEcLaZAYolkrkvbZE4w7-KeQTGgBMiwbIOg7kKYJ1yEKwdhxFhYRYJ6dm4YlkONsjJOOsh5opKAiE4H3mF-vShHqDSpDGTjXrAIy0FIOBoL4gTE7GbzicYJh 1ORJhdMkearHmrc2oZ4JTRJT8ngd4InhAOCyH7rvu40A6K9dsgxk2ifnDGRf54gE5ziAA)
### What does the proposed API look like?
Provide officially supported interval configurations, such as adding gap attributes to support pie chart intervals, which can be radians or pixel widths, etc.
</details>
--
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.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
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