Apache ECharts Apache-licensed JavaScript visualization library with configurable chart types, Canvas/SVG renderers and server-side output.
Overview Apache ECharts is an open-source JavaScript visualization library for embedding configurable charts into applications. It supports Canvas and SVG rendering and separates reusable datasets from chart configuration. Browser interaction and server-generated output are available through different integration paths, making it useful for dashboards and reports while requiring deliberate choices about rendering, accessibility and bundle size.[1] [5] [6]
Contents Keeping chart configuration separate from data The dataset component lets multiple series reuse a source rather than duplicating a separately shaped array for each series. Dimensions and encode settings map fields to axes, tooltips, labels and other visual roles. Default mapping rules are available, but explicit mappings help when the input shape differs from a simple example. This is a useful boundary in generated dashboard code: the visualization library organizes values for display; it does not determine whether an application's data aggregation is meaningful.[5]
Renderer selection is a functional choice Canvas and SVG are selected when a chart is initialized. The handbook suggests choosing according to the device, number of elements and required effects, and acknowledges that some effects depend on Canvas. SVG and Canvas therefore should not be treated as identical export switches for every configuration. Claims about performance depend on workload and environment; no benchmark was performed for this article.[3]
Selective imports need explicit registration A full import makes the library's functionality available, while the modular interface allows importing selected chart types, components and features. In that modular path, no renderer is included automatically: CanvasRenderer or SVGRenderer must be registered. TypeScript's ComposeOption can describe the configured subset. This helps explain why an otherwise valid-looking chart generated from a full-import example may fail when moved into an aggressively reduced application bundle.[4]
Server output and lightweight hydration Server rendering can produce SVG strings or raster images. The SVG path requires explicit dimensions and disables the ordinary browser event machinery. Loading the full client library later restores richer interactions; the lightweight client instead supports a narrower set of interactions and can request new server-rendered SVG for changes such as legend selection. That requires an application protocol and state handling and does not provide every real-time interaction, including normal mouse-following tooltips. A static report and an interactive dashboard should be assessed separately.[6]
Descriptions, decals and version-aware options The accessibility handbook describes generated or custom descriptions and patterns that distinguish data without relying only on color. It requires explicit AriaComponent inclusion and enablement and notes that a long list of every point can be less useful than a considered description. Some handbook examples use aria.show; the inspected source marks that option deprecated and maps it to aria.enabled. Developers should prefer the installed version's current API rather than reproduce legacy names without checking them.[7] [8]
Visual compatibility across versions The ECharts 6 migration guide calls out a new default theme, changes to component placement and sizing, axis-label layout behavior and rich-text style inheritance. A compatibility theme is offered for restoring prior defaults. Consequently, an unchanged data/configuration object need not produce a pixel-identical chart after a major upgrade. Visual regression checks should reflect intentional changes instead of treating all changed output as either automatically acceptable or automatically a bug.[9]
License and substitution Apache ECharts uses Apache-2.0. It can substitute for Chart.js where both cover the required embedded chart, with a different configuration model and a choice of rendering paths. Migration means translating the application's series, options and interactions; it does not establish compatibility with existing Chart.js plugins. The useful scope is visualization inside an application, not replacement of its database, analytics semantics or complete accessibility review. No package was installed or rendered for this research.[1] [2] [4] [10]
Also included: 4 capabilities and 0 substitute relationships. Check substitutes in section 1 and capabilities in section 3.