LightningWebChartJS icon indicating copy to clipboard operation
LightningWebChartJS copied to clipboard

Undefined Label with SOQL

Open the-integrator opened this issue 3 years ago • 0 comments

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?

  1. Put LWCC App Builder in a Lighting Record Page (e.g. Opportunity)
  2. Select Type "bar"
  3. 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: image

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: image 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: image My Groupings (Stage Name) and the Dataset Label seem to be swapped.

Other Comments

Is this expected behavior or am I doing something wrong?

the-integrator avatar Mar 29 '21 14:03 the-integrator