Skip to content
Stand with Ukraine flag

Advanced Analytics Bundle

All visualizations created in Trendz Analytics can be added to ThingsBoard dashboards. The Advanced analytics Bundle is a widget collection that must be imported into the ThingsBoard Widgets Library. Once imported, you can use it to embed Trendz views into any dashboard and share analysis results with other users.

Starting from ThingsBoard 4.3 and Trendz 1.15, Trendz widgets are managed at the sysadmin level and upgraded automatically. No manual import is required. The only prerequisite is that Trendz must be connected to ThingsBoard. See Step 6 of the installation guide for connection instructions.

Once Trendz is synced with ThingsBoard, the system bundle Advanced analytics Bundle appears in the Widgets Library.

  1. Open the Trendz settings page as a tenant administrator.

  2. Scroll to the Trendz Widget Bundle Management section.

  3. Click Upload bundle to add the Trendz widget library to ThingsBoard. If ThingsBoard already contains the bundle but it is outdated, the same button applies the latest changes.

For bundle upgrade steps after a ThingsBoard version upgrade, see Trendz Widget Bundle.

Starting from ThingsBoard 3.3 and Trendz 1.8, Trendz widgets can be natively embedded into ThingsBoard dashboards. Native widgets perform significantly faster than the older iFrame-based approach.

Step 1 — Add the native Trendz library to ThingsBoard extensions:

  1. Download the Native Trendz Library.

  2. Deploy the library to the ThingsBoard extensions directory:

    Terminal window
    scp trendz-tb-lib-1.8.0-SNAPSHOT.jar ubuntu@$\{THINGSBOARD_SERVER\}:~/.
    ssh $\{THINGSBOARD_SERVER\}
    sudo cp trendz-tb-lib-1.0.0-SNAPSHOT.jar /usr/share/thingsboard/extensions/
    sudo chown thingsboard:thingsboard /usr/share/thingsboard/extensions/trendz-tb-lib-1.0.0-SNAPSHOT.jar
  3. Restart the ThingsBoard service:

    Terminal window
    sudo service thingsboard restart

Step 2 — Import the native Trendz widget bundle:

  1. Download Native Trendz widgets bundle.

  2. Log in to ThingsBoard as a tenant administrator and navigate to Widget Library.

  3. Click Add new widget bundle and select Import widget bundle.

  4. Import the downloaded bundle.

  1. Download Trendz widgets bundle V3.

  2. Log in to ThingsBoard as a tenant administrator and navigate to Widget Library.

  3. Click Add new widget bundle and select Import widget bundle.

  4. Import the downloaded bundle.

  1. Download Trendz widgets bundle V2.

  2. Log in to ThingsBoard as a tenant administrator and navigate to Widget Library.

  3. Click Add new widget bundle and select Import widget bundle.

  4. Import the downloaded bundle.

The bundle includes four widgets:

WidgetDescription
Trendz View StaticEmbeds a saved Trendz visualization into a ThingsBoard dashboard
Trendz View LatestLike Trendz View Static, but also supports dashboard aliases for resolving entities dynamically
Trendz Chat AssistantAn interactive chat interface for quick data retrieval and analysis
Trendz Builder (Deprecated)A self-service visualization builder for end users

Blank widget with error (ThingsBoard 3.5+)

Section titled “Blank widget with error (ThingsBoard 3.5+)”

Starting from ThingsBoard 3.5, the Angular version was upgraded to 15. The standard library link loads a build compiled against Angular 12, which is incompatible. To fix this:

  1. Update Trendz to version 1.10.1 or higher. If you are on Trendz Cloud, skip this step.

  2. Log in to ThingsBoard as a tenant administrator.

  3. Navigate to Resources → Widgets Library, then select and open Trendz Bundle for editing.

  4. For each widget in the bundle:

    • Open the widget for editing.
    • Switch to the Resources tab (top-left corner).
    • Replace the Trendz library URL:
      • ThingsBoard/Trendz Cloud (North America): https://thingsboard.cloud/trendz/bundle/trendz-tb-lib.js
      • ThingsBoard/Trendz Cloud (Europe): https://eu.thingsboard.cloud/trendz/bundle/trendz-tb-lib.js
    • Save the widget.
  5. Reload your dashboard — the widgets should now work.

If widgets show a blank screen after import, verify that you downloaded the bundle for the correct ThingsBoard version. The widget API in ThingsBoard 2.x and 3.x is different — importing the wrong version will cause widgets to fail silently.

If ThingsBoard uses HTTPS and the link to the Trendz library uses HTTP, the browser blocks the request as mixed content. Enable HTTPS for Trendz to resolve this.