JavaScript Chart with Logarithmic Axis Example

Demonstrates how to create a JavaScript Chart with Logarithmic axis using SciChart.js, High Performance JavaScript Charts

Fullscreen

Edit

 Edit

Docs

drawExample.ts

Copy to clipboard
Minimise
Fullscreen
1// Loading ... 

Logarithmic Axis Example (JavaScript)

Overview

This example demonstrates how to create a high-performance SciChart.js chart featuring LogarithmicAxis configuration using JavaScript. The implementation plots exponential curves on both the X and Y axes while allowing runtime toggling between logarithmic and linear axis configurations.

Technical Implementation

The chart is asynchronously initialized using SciChartSurface.create, which loads the WebAssembly context and applies a custom theme for styling. Two LogarithmicAxis are configured with properties such as logBase, labelFormat, and labelPrecision; details of these configurations can be found in the Logarithmic Axis Documentation. Renderable series are created using FastLineRenderableSeries in combination with XyDataSeries to plot exponential curves, and each series is enhanced with a SweepAnimation for smooth visual transitions.

Features and Capabilities

The example showcases real-time update capabilities by enabling users to seamlessly switch between logarithmic and linear axis states at runtime. It integrates interactive modifiers such as RubberBandXyZoomModifier and MouseWheelZoomModifier to facilitate intuitive zooming and panning. Additionally, the application of custom theming—including grid line brushes and title styling—illustrates how visual aspects can be tailored to meet specific design requirements. For additional context on building high-performance charts, refer to Getting Started with SciChart JS.

Integration and Best Practices

Despite being a JavaScript example, the implementation follows best practices in asynchronous initialization, interactive behavior, and dynamic configuration. The runtime axis switching is handled by toggling the visibility and primary status of the axes, ensuring that the currently active axes are correctly bound to the series data; this approach is in line with the guidance provided in the SciChart.js Documentation. Developers looking to optimize performance and customize their charts further can benefit from exploring the available Performance Tips & Tricks provided by SciChart.js.

javascript Chart Examples & Demos

See Also: Scientific & Medical Charts (10 Demos)

JavaScript Vital Signs ECG/EKG Medical Demo | SciChart.js

JavaScript Vital Signs ECG/EKG Medical Demo

In this example we are simulating four channels of data showing that SciChart.js can be used to draw real-time ECG/EKG charts and graphs to monitor heart reate, body temperature, blood pressure, pulse rate, SPO2 blood oxygen, volumetric flow and more.

LiDAR 3D Point Cloud of Geospatial Data | SciChart.js

LiDAR 3D Point Cloud of Geospatial Data

Demonstrating the capability of SciChart.js to create JavaScript 3D Point Cloud charts and visualize LiDAR data from the UK Defra Survey.

JavaScript Chart with Vertically Stacked Axes | SciChart

JavaScript Chart with Vertically Stacked Axes

Demonstrates Vertically Stacked Axes on a JavaScript Chart using SciChart.js, allowing data to overlap

Realtime Audio Spectrum Analyzer Chart | SciChart.js Demo

Realtime Audio Spectrum Analyzer Chart Example

See the frequency of recordings with the JavaScript audio spectrum analyzer example from SciChart. This real-time visualizer demo uses a Fourier Transform.

Realtime Audio Analyzer Bars Demo | SciChart.js Demo

Realtime Audio Analyzer Bars Demo

Demonstrating the capability of SciChart.js to create a JavaScript Audio Analyzer Bars and visualize the Fourier-Transform of an audio waveform in realtime.

Interactive Waterfall Chart | Javascript Charts | SciChart.js

Interactive Waterfall Spectral Chart

Demonstrates how to create a Waterfall chart in SciChart.js, showing chromotragraphy data with interactive selection of points.

Interactive Phasor Diagram chart | Javascript Charts | SciChart.js

Phasor Diagram Chart Example

See the JavaScript Phasor Diagram example to combine a Cartesian surface with a Polar subsurface. Get seamless JS integration with SciChart. View demo now.

NEW!
JavaScript Correlation Plot | Javascript Charts | SciChart.js

JavaScript Correlation Plot

Create JavaScript Correlation Plot with high performance SciChart.js. Easily render pre-defined point types. Supports custom shapes. Get your free trial now.

NEW!
Semiconductors Dashboard | JavaScript Charts | SciChart.js

Semiconductors Dashboard

JavaScript **Semiconductors Dashboard** using SciChart.js, by leveraging the **FastRectangleRenderableSeries**, and its `customTextureOptions` property to have a custom tiling texture fill.

NEW!
Wafer Analysis Chart | JavaScript Charts | SciChart.js

Wafer Analysis Chart

JavaScript **Wafer Analysis Chart** using SciChart.js, by leveraging the **FastRectangleRenderableSeries**, and crossfilter to enable live filtering.

SciChart Ltd, 16 Beaufort Court, Admirals Way, Docklands, London, E14 9XL.