-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Error at Legend Key Misalignment with CalloutLabel in AG Grid Integrated Pie Chart #7951
Comments
Hello Lucas, Thank you for taking the time to write such an in-depth report. There's no way to implement this behaviour with AG Grid Integrated Charts. When you make a theme override to the callout labels, the legend labels will copy the changes automatically. We recognised this as a limitation, and there is already a feature request to track this requirement: AG-10564 [Charts] Provide series datum in legend item formatter params We have no timeline for this at the moment, but this can still be picked up by our team when they're making modifications to this functional area of AG Grid. Please use the functionality currently provided by AG Grid until this is delivered at a later point. See whether this item will be in the next release by checking the NEXT RELEASE checkbox on the product pipeline page: The best way to track this is to sign up for AG Grid new release notifications using the instructions here. This way you'll know as soon as a new version is out and you can check whether this specific item was implemented on the changelog page. Thanks again for bringing this up with us. Kind regards, |
Good morning, thank you very much for your reply. Unfortunately, I'm stuck with Integrated Charts because Standalone Charts doesn't support Vue 3, so it's very limited.
Could you describe what this functionality is or link me to the documentation? |
Hi Luca, Standalone AG Charts does support Vue3 - please see the documentation here https://charts.ag-grid.com/vue/quick-start/ for the Quick Start guide. You can potentially achieve both of your asks by using a standalone chart with AG Grid, however, it needs to be tested more thoroughly. Regarding your query on #7947: You cannot pass a new data range via Theme Override to Integrated Chart. We do have a FR in the backlog to achieve the outcome you are after: AG-5482 [Integrated] Allow sorting integrated charts independently of the grid We have no timeline for this at the moment, but this can still be picked up by our team when they're making modifications to this functional area of AG Grid. Please use the functionality currently provided by AG Grid until this is delivered at a later point. See whether this item will be in the next release by checking the NEXT RELEASE checkbox on the product pipeline page: The best way to track this is to sign up for AG Grid new release notifications using the instructions here. This way you'll know as soon as a new version is out and you can check whether this specific item was implemented on the changelog page. Thanks again for bringing this up with us. Kind regards, |
Thanks for the quick reply!
But according to this issue #7964 and this issue ag-grid/ag-charts#699, Vue 3 support is having some problems. Even installing |
I'm submitting a ...
Customers of AG Grid
We're currently testing and planning to buy, depending on whether we can achieve our desired functionality.
Providing a Reproducible Scenario
Accepted reproducible scenarios are
I need to display the formatted value (currency in this case) in the calloutLabel on the Pie Chart. It's more user-friendly for users to view the value without having to hover the mouse over the pie chart.
I managed to achieve this by using the following code:
return ${useCurrencySymbol(params.datum[params.angleKey]).value};
. I utilized the angleKey to determine the value to be shown in the calloutLabel and took control over the calloutLabelKey. However, by doing this, the legendKey also changes to the same calloutLabelKey, and it returns the currency value of the calloutLabel formatter.The documentation is unclear about how to change the Legend Key in Integrated Charts. To be honest, all documentation regarding Integrated Charts lacks some information!
How can we gain control over the Legend Key?
Here is the createRangeChart function:
To conduct a test, please uncomment the line related to the legend and inspect the console for values. Additionally, observe the legend values on the Pie Chart.
Then, comment out the block related to the calloutLabel and reassess the legend.
Current behavior
Pie legend assumes key from calloutLabelKey.
Expected behavior
Be able to pass a legend key so I can show the correct value in Legend.
Please tell us about your environment:
Windows, Cube GraphQL, WebStorm
AG Grid versions:
"ag-charts-enterprise": "^9.3.1",
"ag-charts-vue3": "^9.3.1",
"ag-charts-community": "^9.3.1",
"ag-grid-charts-enterprise": "^31.2.1",
"ag-grid-enterprise": "~31.2.1",
"ag-grid-vue3": "^31.2.1",
Language: Quasar with Vue 3 with Typescript setup and Apollo GraphQL
The text was updated successfully, but these errors were encountered: