LightningWebChartJS icon indicating copy to clipboard operation
LightningWebChartJS copied to clipboard

Horizontal Bar Chart renders once, then fails.

Open RyanSchierholz opened this issue 3 years ago • 1 comments

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

RyanSchierholz avatar Jan 15 '23 17:01 RyanSchierholz

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

victorgz avatar Dec 13 '24 08:12 victorgz