Skip to content
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

Undefined Label with SOQL #39

Open
the-integrator opened this issue Mar 29, 2021 · 0 comments
Open

Undefined Label with SOQL #39

the-integrator opened this issue Mar 29, 2021 · 0 comments

Comments

@the-integrator
Copy link

the-integrator commented Mar 29, 2021

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?

psuslick added a commit to psuslick/LightningWebChartJS that referenced this issue Apr 15, 2021
…f chart legend

To address concerns which were raised in issue SalesforceLabs#39 (SalesforceLabs#39) this feature adds an ability for the app builder to toggle display of the legend on or off.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant