Skip to content

Performance with initializing multiple plot components at once #97

Closed
@dsa821

Description

@dsa821

Hello,

I am trying to display multiple bar charts on the same page at the same time (at least 50, potentially up to 100 or so). I've noticed that the initialization time of an individual plot seems to be affected by how many total plots there are.

For example, 1 chart might take around 30 ms (based on when the (initialized) callback fires). 10 charts starts causing them to take around 250 ms. 50 charts is closer to 1500 ms. Obviously having more charts will be slower overall, but I wasn't expecting all individual (initialized) callbacks to take longer, and then fire all at once.

Stackblitz here - initialization times are being logged to the console.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions