-
Notifications
You must be signed in to change notification settings - Fork 19.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tootip 如何优美的格式化金额、百分比值 #15430
Comments
Hi! We've received your issue and please be patient to get responded. 🎉 In the meanwhile, please make sure that it contains a minimum reproducible demo and necessary images to illustrate. Otherwise, our committers will ask you to do so. A minimum reproducible demo should contain as little data and components as possible but can still illustrate your problem. This is the best way for us to reproduce it and solve the problem faster. You may also check out the API and chart option to get the answer. If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to [email protected]. Please attach the issue link if it's a technical question. If you are interested in the project, you may also subscribe our mailing list. Have a nice day! 🍵 |
@crazyair It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people, we'd like to suggest using English next time. 🤗 TRANSLATEDTITLE tootip If beautifully formatted amount, percentage value BODY What problem does this feature solve?What does the proposed API look like?The values shown here want formatter formatted to be formatted in different formats, but only tooltip.formatter stitches the entire html, but in general only need to modify the format of the value, do not need to change anything else, want to implement the following API tooltip: {
formatter: data => {
return { name: data.type, value: `${data.value}%` };
},
}, |
Please follow #14962. |
What problem does this feature solve?
What does the proposed API look like?
这里显示的值想要 formatter 格式化为不同格式,但是只有 tooltip.formatter 拼接整个 html,但是一般情况下只需要修改值的格式,不需要改其他内容,想要实现如下 API
The text was updated successfully, but these errors were encountered: