Download Latest Version Line Segmentation _ _connectNulls_ Support source code.zip (8.1 MB)
Email in envelope

Get an email when there's a new version of ChartGPU

Home / v0.3.2
Name Modified Size InfoDownloads / Week
Parent folder
Line Segmentation _ _connectNulls_ Support source code.tar.gz 2026-02-26 7.9 MB
Line Segmentation _ _connectNulls_ Support source code.zip 2026-02-26 8.1 MB
README.md 2026-02-26 4.4 kB
Totals: 3 Items   16.0 MB 0

Release Notes — Line Segmentation & connectNulls Support

Highlights

  • Line & Area Segmentation via null gaps — Lines and area series can now be visually broken into discrete segments by inserting null entries into your data array. This enables accurate representation of missing data, maintenance windows, trading halts, and session boundaries without hacking around the data model.
  • connectNulls option — A new connectNulls boolean option on line and area series lets you toggle between bridging over null gaps (legacy behavior) or rendering true visual breaks (new default). Works with both array and columnar data formats.
  • WebGPU shader-level gap detection — NaN/null gap awareness is now built directly into the line vertex shader and area vertex generation, ensuring GPU-side rendering correctly handles discontinuous data with zero CPU overhead per frame.
  • Sampling bypass for gapped data — The data pipeline automatically detects null gaps and bypasses the sampling stage to preserve segment boundaries, preventing gaps from being silently dropped during downsampling.
  • New exchange-gaps example — A fully interactive demo showcasing exchange maintenance gaps, connectNulls toggling, multi-asset outages, and trading session concatenation.

What's New

Core Types

  • Widened CartesianSeriesData to accept null entries for line and area series (5ee761c)
  • Added connectNulls option to line and area series configs (992886a)

Options & Data Pipeline

  • Resolve connectNulls for line and area series in the options layer (9a5aea9)
  • Add connectNulls filter in the data upload path (0b8d1fd)
  • Bypass sampling when data contains null gaps (88044c0)

Rendering & Shaders

  • Add NaN gap detection to the line vertex shader (7acc83a)
  • Handle null gaps in area renderer vertex generation (0c6ba74)
  • Fix connectNulls handling with columnar data formats (be58df7)

Examples

  • Add exchange-gaps example (HTML + TS) demonstrating null gap support, connectNulls toggle, multi-asset outages, and trading session concatenation (336755b)
  • Improve exchange-gaps example readability (28318d1)

Tests

  • Add packXYInto unit tests for null gap entries (670ce7f)
  • Add line-gaps acceptance test covering null-gap detection, filtering, bounds computation, option resolution, and sampling bypass behavior (c0197ba)

Documentation

  • Document null-gaps / line segmentation behavior and connectNulls in docs/api/options.md (1dcb881)
  • Surface the feature in the README and examples index

Housekeeping

  • Remove internal docs/plans from tracking (3353a7b)

Source: README.md, updated 2026-02-26