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

Horizontal Bar Chart renders once, then fails. #126

Open
RyanSchierholz opened this issue Jan 15, 2023 · 1 comment
Open

Horizontal Bar Chart renders once, then fails. #126

RyanSchierholz opened this issue Jan 15, 2023 · 1 comment

Comments

@RyanSchierholz
Copy link

RyanSchierholz commented Jan 15, 2023

Who is the bug affecting?

everyone (?)

What is affected by this bug?

Unable to view data in the chart.

When does this occur?

after the LWC has loaded on a contact page and then switching to a new contact
OR hiding and then reshowing the chart on the same contact

Where on the platform does it happen?

On the Contact lightning page

How do we replicate the issue?

static data in js:
hbdsStatic = [ { label : 'ABC', data : [4], backgroundColor : 'red' }, { label : 'XYZ', data : [2], backgroundColor : 'blue' }, ];

code in html:
<c-chart type="horizontalBar"> <c-dataset> <template for:each={hbdsStatic} for:item="d"> <c-data key={d.label} label={d.label} detail={d.data} backgroundcolor={d.backgroundColor}></c-data> </template> </c-dataset> </c-chart>

After clearing the cache, it loads correctly once.

Expected behavior (i.e. solution)

When viewing the component a second time, I expect the chart to render.

Other Comments

FIRST LOAD:
Screenshot 2023-01-15 at 10 56 11 AM

Subsequent loads:
Screenshot 2023-01-15 at 10 56 42 AM

@victorgz
Copy link
Collaborator

Hello, we do not continue to apply fixes to this project, but we only act as code reviewers and release managers.
You're welcome to create a Pull Request with your suggested changes, that we'll review. If approved, the Pull Request will be included in the open-source (repository) version of the package. However, new changes won't be part of the Managed Package.
Hope it's clear and you understand it. Happy to see your PRs coming in the future.
Best regards,
@scolladon & @victorgz

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

2 participants