Inuatek DCC Widget Customization Guide
This guide shows how to customize Inuatek's default chart and gauge widgets using Apache ECharts, with real examples used in your platform. It includes:
- Base widget configurations
- Progressive modifications
- Hints to empower users to make their own visualizations
NOTE: A prerequisite for fully understanding the below is some knowledge about the structure of JS and JSON formats.
๐งญ Simple View vs. Advanced Viewโ
When you open the configuration panel for a custom chart widget, you will find a toggle in the top-left corner of the Configuration accordion:

| Icon | Mode |
|---|---|
| Simple view โ form UI that maps data sources to chart series | |
| Advanced view โ raw JSON editor (the focus of this guide) |
๐ Simple Viewโ
The Simple View is designed for quickly connecting data sources to chart series without editing raw JSON. It exposes only the datasource assignment for each series โ specifically the data field (or value inside a data array entry for pie/bar charts). All other ECharts properties remain untouched.
Each row in Simple View shows:
- A Series name field (auto-managed when using a datasource alias).
- A Datasource alias selector โ choose from the aliases added to the widget, or type a custom static value.
Changes made in Simple View write back to the same JSON that the Advanced editor reads, so the two views are always in sync. Switching between them never loses data.
In simple cases โ where every series slot uses a datasource alias directly as the data value (line/bar with one datasource per series) โ adding a new datasource to the widget automatically creates a new series entry in the JSON. The series is pre-filled with the alias as its value and the datasource sample name as its display name. No manual JSON editing is required.
Simple View only surfaces datasource assignment. For structural changes โ changing chart type, configuring axes, colors, or thresholds โ use Advanced View (JSON editor). Removing or reordering series also requires Advanced View.
๐ง Advanced Viewโ
The Advanced View is a full JSON editor and is the subject of the rest of this guide. Use it for any configuration beyond connecting data sources.
๐ Line Chart Widgetโ
๐ข Base Widget (Time Series Line Chart)โ
{
"xAxis": {
"type": "time",
"axisLabel": {
"hideOverlap": true
}
},
"yAxis": {
"type": "value"
},
"legend": {
"show": true,
"type": "scroll",
"right": "20%"
},
"grid": {
"bottom": 27,
"top": 30
},
"backgroundColor": "rgb(0 0 0 / 0%)",
"tooltip": {
"show": true,
"trigger": "axis"
},
"dataZoom": [
{
"type": "inside",
"disabled": true,
"start": 0,
"end": 100
}
],
"series": [
{
"data": "Datasource_unique_id",
"type": "line",
"name": "Name",
"sampling": "lttb",
"symbol": "none"
}
]
}