Skip to content

Horizontal Bar Chart renders once, then fails. #126

@RyanSchierholz

Description

@RyanSchierholz

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions