Skip to content

Client charting libraries should only be loaded if a component is used #363

@benmusson

Description

@benmusson

Currently both the Chart.js component and the ApexCharts component use the same BrowserResource.
This means that both Chart.js and ApexCharts are loaded by the Perspective session, even if only one chart type is being used.

We should emit separate client-side code specific to each component type and then register the BrowserResources appropriately.

Metadata

Metadata

Assignees

Labels

8.1Related to modules targeting Ignition 8.18.3Related to modules targeting Ignition 8.3chartsIssue related to Charts moduleenhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions