On this page
Overview
Loads the bundled uPlot classic script once and returns its global constructor.
- Artifact
ChartLibrary.js· esm - Classification
public first party - Availability
Browser / native WebView - Normalization
Load state/errors normalized; uPlot result is vendor-native.
Import and lifecycle
import chartLibrary from '/arcane/modules/ChartLibrary.js';
Returns existing window.uPlot or injects the bundled uPlot.iife.min.js script once and caches the load promise.
Application-facing behavior: default loadChartLibrary().
Protocol and host implementation
DOM script injection This detail does not widen the application-facing API or grant authority.
Exports, signatures, parameters, and results
| Binding | Form | Declaration or signature | Parameter syntax |
|---|---|---|---|
default | default · function | function loadChartLibrary() | — |
| Callable | Kind | Exact public signature | Parameter syntax |
|---|---|---|---|
default | exported-function | function loadChartLibrary() | — |
Parameter meanings and results
loadChartLibrary() takes no arguments and resolves the vendor uPlot global constructor.
Events, side effects, and errors
Source-literal CustomEvent dispatches
No source-literal CustomEvent dispatch is part of this artifact.
Lifecycle and event flow
- script load
- script error
Direct coded failures
This artifact directly assigns no stable coded failure.
Exported Error subclasses
This artifact exports no Error subclass.
Documented failure behavior
- uPlot did not initialize
- Unable to load the chart library
Availability and capabilities
Browser / native WebView. Load state/errors normalized; uPlot result is vendor-native.
Browser and native-WebView chart bootstrap; a first-party loader around the bundled vendor global with no Core service.
Contract example
import loadChartLibrary from '/arcane/modules/ChartLibrary.js';
const uPlot=await loadChartLibrary();
console.log(typeof uPlot);
Related reference
No direct Core call is claimed for this artifact. Any injected provider or consuming module retains its own documented authority.