LightningWebChartJS
LightningWebChartJS copied to clipboard
Undefined Label with SOQL
Who is the bug affecting?
Admins who are trying to use the component in a record page with the app builder.
What is affected by this bug?
Dataset labels
When does this occur?
Anytime I use a SOQL Query
Where on the platform does it happen?
Lightning Record Page
How do we replicate the issue?
- Put LWCC App Builder in a Lighting Record Page (e.g. Opportunity)
- Select Type "bar"
- Use the following SOQL: "SELECT Sum(Amount) value, StageName label FROM Opportunity WITH SECURITY_ENFORCED GROUP BY StageName LIMIT 20"
It results in a chart with an undefined label as below:
Expected behavior (i.e. solution)
I would have expected the chart above not with an undefined label but with the labels of the Stage Names all in a different color like it is demonstrated in the demo videos here and here.
This is a screenshot from the second video link:
The only thing that's different here is the "Dataset Labels" configuration field set to ["Sum(Amount)"] in the video example.
If I do that, I get:
My Groupings (Stage Name) and the Dataset Label seem to be swapped.
Other Comments
Is this expected behavior or am I doing something wrong?