Capability first · transport second

ChartLibrary.js

Loads the bundled uPlot classic script once and returns its global constructor.

SDK 0.5.18Runtime 0.8.12Protocol arcane/1
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

JavaScript
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

BindingFormDeclaration or signatureParameter syntax
defaultdefault · functionfunction loadChartLibrary()
CallableKindExact public signatureParameter syntax
defaultexported-functionfunction 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

JavaScript
import loadChartLibrary from '/arcane/modules/ChartLibrary.js';

const uPlot=await loadChartLibrary();
console.log(typeof uPlot);

No direct Core call is claimed for this artifact. Any injected provider or consuming module retains its own documented authority.