A collection of custom dashboard widgets for the Cumulocity platform. This library provides advanced visualization capabilities to enhance your dashboards.
The library contains the following custom widgets:
- Cumulocity Web SDK (compatible with v1023.82.4 or later)
- Node.js (v18 or v20 recommended)
- Angular CLI
Important
Compatibility Note: These widgets require Cumulocity Cockpit / Web SDK version 1023.0.0 or later. Attempting to load them into older versions (such as v1022) will fail at runtime with loading/dependency errors (e.g., TypeError: Cannot read properties of undefined (reading 'hasOwnProperty') or NG0200 dependency injection errors) due to missing runtime exports in the host platform.
To install this widget library as a plugin in your Cumulocity application:
-
Install the package dependencies in your project:
npm install cumulocity-widget-library
-
Add the modules of the widgets you want to use to your application's
app.module.ts:import { AlarmHeatmapWidgetModule, StackedBarChartWidgetModule, CustomMapWidgetModule, SpcChartWidgetModule, SankeyDiagramWidgetModule, ParetoChartWidgetModule, RadarChartWidgetModule, IdealStateDeviationWidgetModule, DowntimeGanttWidgetModule, ScatterPlotWidgetModule } from 'cumulocity-widget-library'; @NgModule({ imports: [ // ... other imports AlarmHeatmapWidgetModule, StackedBarChartWidgetModule, CustomMapWidgetModule, SpcChartWidgetModule, SankeyDiagramWidgetModule, ParetoChartWidgetModule, RadarChartWidgetModule, IdealStateDeviationWidgetModule, DowntimeGanttWidgetModule, ScatterPlotWidgetModule ] }) export class AppModule {}
To start a local development server for testing the widgets:
-
Install dependencies:
npm install
-
Start the development server:
npm run start
-
Open your browser and navigate to
http://localhost:4200/.
To compile the library and build the production-ready plugin package:
npm run buildThe build artifacts will be stored in the dist/ directory, ready to be uploaded to your Cumulocity administration application under the Ecosystem -> Applications tab.
We welcome contributions to this project! Please read CONTRIBUTING.md and sign the CONTRIBUTOR-LICENSE-AGREEMENT.md before submitting a Pull Request.
These tools are provided as-is and without warranty or support. They do not constitute part of the Cumulocity product suite. Users are free to use, fork and modify them, subject to the license agreement.
For more information or help, please visit the Cumulocity TechCommunity.








