Skip to content

Cookie preferences

We use cookies for our own analytics, to see how our campaigns perform and, if you allow it, to load content from other services such as the Google site search. We never sell your data. Necessary cookies keep the site working and cannot be switched off. See our Cookie Policy for details and our Privacy Policy for how we handle personal data.

Security, load balancing and remembering your cookie choice.

Show us which pages people read and how they find the site, so we can improve it (Google Analytics).

Show us which of our ad campaigns bring visitors to the site and remember the campaign or partner link you arrived from (Google Ads, partner program). We do not use these cookies to build advertising profiles.

Load the site search from Google when you use it. Google sets its own cookies and shows ads in the search results.

© 2026 The ThingsBoard Authors
Try for free

ThingsBoard Cloud

Choose your data region

Your data stays in the region you choose, for residency and compliance. No credit card required.

Rather run it yourself? Install on your own servers

Time series chart - stack mode

  • Widget
  • 41 installs
  • v1.0.0
  • Jul 20, 2026
  • MIT license
  • v4.2+

Native ThingsBoard time series chart with corrected stack mode: at the same timestamp, positive values stack upward and negative values stack downward independently in the same bar column. All native settings, tooltips, thresholds, legend and zoom are preserved.

Widget Type
  • Timeseries
Category
  • Charts & Graphs
Use Cases
  • Smart Energy
  • Smart Metering
  • Solar Monitoring

one:solutions Time series chart - stack mode

Displays time series data as stacked bars where positive values stack upward and negative values stack downward from the zero line — independently, in the same bar column.

Features

  • Correct stacking of mixed positive/negative values (positives accumulate up, negatives accumulate down)
  • Zero line as the shared baseline, with correct signed segment size and series color
  • 100% native ThingsBoard chart underneath — all standard settings panels, per-key settings, tooltips, thresholds, legend, data zoom and dark mode work unchanged
  • Fully self-contained: no external resources or CDN scripts
  • With stacking disabled (or all-same-sign data), behaves identically to the standard Time series chart

Data keys

  • Any numeric timeseries keys (1 or more) — no specific key names required
  • Set each stacked key’s chart type to Bar: key settings → Advanced → chart type
  • Keys of type Line are drawn as regular lines on top of the stacked bars
  • Additional latest data keys are supported, as in the standard chart

Typical use cases

ScenarioPositive valuesNegative values
Energy managementConsumptionSolar feed-in
Battery systemsChargingDischarging
Finance / billingIncomeExpenses
Inventory / balanceAdditionsRemovals

Configuration

  • Stacked (Appearance) — enabled by default; turn off for side-by-side bars
  • Y-axis min/max (Axes) — optional; set explicitly if stacked totals far exceed individual values
  • All other options are the standard Time series chart settings

Compatibility

Built and verified on ThingsBoard 4.0 (CE and PE). Uses only the platform’s bundled chart engine — no Professional Edition features required. If a future ThingsBoard version changes internal APIs, the widget safely falls back to standard native rendering.

Share Your Widget with the Community

Built a custom widget? Export it as a JSON from ThingsBoard and publish it to the IoT Hub through a simple 4-step wizard (Upload, Listing, Readme, Review & Submit). Share it with thousands of ThingsBoard developers worldwide and get featured in the catalog.