Demonstrates how to use the Builder Api to create a Chart from JSON using SciChart.js. Adjust the JSON in the window below and the chart will re-build. Choose from pre-selected defaults to learn more about the Builder API.
This example demonstrates how to create a chart from a JSON configuration using the SciChart.js Builder API in JavaScript. The purpose is to provide a dynamic and highly customizable charting solution that leverages JSON data to configure series, axes, layout, annotations and more.
The example utilizes the Builder API method build2DChart to parse JSON definitions and initialize the chart. The async function handles chart creation and integrates WebAssembly for high-performance rendering, following best practices for asynchronous error handling as outlined in Getting Started with SciChart JS. Dynamic data is generated using JavaScript loops to create series data such as spiraling points, demonstrating practical usage of the Working with Data techniques.
The configuration supports multiple chart types including simple spline line series, dual-axis charts, bubble series, and scatter series with a central axis layout. Advanced customizations are provided via JSON definitions such as gradient fill configurations and annotation settings. The example also showcases the ability to switch between different pre-defined configurations, including a detailed full-featured chart, a simple minimal example, and a central layout configuration as described in the Central Axis Layout documentation.
By relying solely on JavaScript, the example avoids framework-specific implementations and highlights the simplicity of using the SciChart.js Builder API for dynamic chart configuration. Developers are encouraged to use async/await for clear error handling and to utilize JSON configurations for scalable chart definitions, ensuring maintainability and performance. The approach detailed here aligns with recommended practices for creating modular and efficient charting applications, as emphasized in the Intro to the Builder API and the broader SciChart.js documentation.

Demonstrates how to use the Builder Api to create a simple chart using a definition object. The builder api is designed to make it easier to discover the types and options available in SciChart JS.

Demonstrates how to use the Builder Api to configure axes, series, annotations and modifiers using a definition object. The builder api is designed to make it easier to discover the types and options available in SciChart JS.

Demonstrates how to use the Builder Api to create Reusable Chart Templates.Data can be easily integrated into a definition and shared between series

Demonstrates how to make a custom type such as a PaletteProvider available for use with the Builder Api.You can call methods within the builder api to get references to the objects being built, so you can update them later.