You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "paopjian (via GitHub)" <gi...@apache.org> on 2024/12/24 09:00:16 UTC
[I] [Bug] series-pie.label.formatter {@xxx} is not taking effect [echarts]
paopjian opened a new issue, #20616:
URL: https://github.com/apache/echarts/issues/20616
### Version
5.2.1
### Link to Minimal Reproduction
https://echarts.apache.org/examples/zh/editor.html?c=pie-simple&version=5.5.1&code=PYBwLglsB2AEC8sDeAoWtJgDYFMBcya6GOAHmAQOQBKOAZjgE5OzB2wCGsA6jgEYBnCGByUANEXQCArnxHkqAMQ4BrHLAAiHMB3GTYuOhViUAxjmgjGlIgF8J6MMGBZIIAqmIZGEAOa-mKmEcAFsbdHsiXADoABMPfWAfC2NKADcmSFMOLD0vQ1SC8NhIqSYIHAECAG19Ty8DDj4cLDx6htg6JJDtKzxKJFNbZAABUnHbPI7YAHoZzu7ewLppaFNIGAAKEA5GDhCBAEp2hrniZjBpRjgAAwASJB29g4A6WO0OF_HSWxv9LzOtn-JQcDWg-3wJgAgqZzAIBLBFIxgGFQV4wABPECQyggCpTLx7WIQaRVEwAVgADABSAnEd46GrA9BIWBpHLSSEARkpABYABxiWDgkI4gDKOF2pgAFrAAKLQXwQaCiIXffpcyilaas9lYTkEADsAGZyUKRTiNBBmOtxLB1ZQAEyUEHM5BsjmQ8n8ynmiFUOU9CC5NXjfrGl3ajq6z0EAW8v2iqgAVWgUDgUNiAjtDt5kbRDRj-shxspvuF_pMADUILEcMBYJns6HSP1yZHgQBdAvoUIgaUcIRkk5eYIhMWY3AJabEAQD2LAADuACF9YwCDyew05xwF4uAPJ0OgCHBgAAaBF9bqk86XAGEXEkqIxfHwOJty5-hZSXuTDsUOiBQD9CA2BOxQWwAG4gA
### Steps to Reproduce
1. set series data with 'xxx' key in object
2. set series label:{ formatter:'{@xxx}',}
### Current Behavior
{@xxx} is not taking effort , {c} shows.
### Expected Behavior
expect 'xxx':1 show in the label, not value
### Environment
```markdown
- OS:
- Browser:
- Framework:
```
### Any additional comments?
_No response_
--
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.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
Re: [I] [Bug] series-pie.label.formatter {@xxx} is not taking effect [echarts]
Posted by "sz-p (via GitHub)" <gi...@apache.org>.
sz-p commented on issue #20616:
URL: https://github.com/apache/echarts/issues/20616#issuecomment-2567644262
The problem occurred in https://github.com/apache/echarts/blob/master/src/data/helper/dataProvider.ts#L489-L494
--
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
Re: [I] [Bug] series-pie.label.formatter {@xxx} is not taking effect [echarts]
Posted by "helgasoft (via GitHub)" <gi...@apache.org>.
helgasoft commented on issue #20616:
URL: https://github.com/apache/echarts/issues/20616#issuecomment-2561377263
apparently label format _[@xxx]_ works under one of two conditions:
* series **dataset** as array-of-arrays or array-of-objects
* series **data** as array-of-arrays
Series data as array-of-objects, as your example, does **not** work unfortunately. This is not explained in the documentation.
[Demo](https://echarts.apache.org/examples/en/editor.html?c=pie-simple&version=5.5.1&code=M4ewrgTgxgpgvAAgNoCgEIN4IG4EMA2YMAXAgIwAMALABwA0CAdrgLYkIDkAyjLtABYIAoowDmAS0YwODAB7ziHMhwC-dNJhwEipAOwBmAKwNmbUhwAi4iDCgAXGQnmzFAJg4I1GrHkLtDNBQmrOwcQiy44viOzor6Hl7oPtrstFTBZpwAqoziIIwIAIIAJsAxChxUCepJWn6k-hRBTCHmAGrixTAgRaXlLhyGCSgAugDcKMW4driIqOhIlLQM3LwCwmKS0ivKIzXIBsacVjb2jhzuCHsaSAHNYRFR5_FX-0hpKzl5BSVlK1WvG6Ne4dLo9X7nIZXUYTEAABzs3wQiAwGkRdnw7FR6HQdhgsjs5gASjAAGYwGwQBAgUkIXAIADqMAARsBxHiZBp0MAwMy8QTzAAxXAAaxgCAs01wnJxCExpMJnFgjDxEA4GkSCDsIBA-ERcNIWE1mNEMEYxUN1Ig4jNio42ApiKgBEc8rtbtU-wA9F6pjNgDBCRhQJBYGocT6EAB3EAQEXALU6jR-3ABoMh6DsFPh9AaAPWmDAUhIbE4_C4ZkwfDELDAfggKPEOwQIj7WWk2MROyqxQYAACixGKkwfecKhlsoQPo7EC7PYQpLAjHs3wAFHC-KxgABKLA2OyQAoAAwAJBgNxAtwA6FNXsdHlRczxtlqZDiFKCwYAJwUQEAsCdcQATzhUI4RtQCEEvYpxDAItOEMCgAFJIJgthGDZfJ4KQe0UhkDhTG2DhnA4a5ZR9FN0EjGM4wTbUQA1EYUBUMYgA).
--
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
Re: [I] [Bug] series-pie.label.formatter {@xxx} is not taking effect [echarts]
Posted by "paopjian (via GitHub)" <gi...@apache.org>.
paopjian closed issue #20616: [Bug] series-pie.label.formatter {@xxx} is not taking effect
URL: https://github.com/apache/echarts/issues/20616
--
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