Skip to content

How to redraw bullet label without re-rendering chart? #2031

Description

Question: How to redraw bullet label without re-rendering chart?

I have labels inside series.bullets. When external state changes, I want to update the label text without re-rendering the whole chart or recreating bullets.

I tried marking labels as dirty:

series.bulletsContainer.children.each((bullet) => {
  const label = bullet.get("sprite");
  label?.markDirty();
  label?.text?.markDirtyText();
});

But the label text is not updating.
Is there a way to force label redraw/re-evaluation (like a “dirty” trigger) without:

  • recreating bullets
  • calling series.data.setAll(...)

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions