Skip to content

3. Compass Record Selection — Linear Gauge

In this step you select the Compass record that the Linear Gauge widget will use. Your record must return a single row with a single numeric value.

Wizard route: /cartography/add/selectcompass

Prerequisite

Steps 1 (Gauge) and 2 (Linear Gauge) must be completed.

02 — Chart Type Selection


1. Compass Record List

Query selection screen


2. Suitable Record Structure for Linear Gauge

-- Tank fill ratio
SELECT tank_fill_percent
FROM tank_status
WHERE tank_id = 1
ORDER BY ts DESC
LIMIT 1;
Column Role in Step 4 Type
Single numeric column Value Source NUMERIC

Single Row Is Mandatory

If the query returns more than one row, the gauge uses only the first row. Guarantee this with LIMIT 1.


3. Compatible Data Sources for Linear Gauge

Data Source Linear Gauge Compatibility
MQTT (live) ✅ Ideal
PostgreSQL / MSSQL / MySQL ✅ Suitable
REST API ✅ Suitable
Excel Offline ⚠️ Limited

4. Search and Tag Filter

Action Effect
Search box Instant filter
Tag filter Only tags in use
Clear Reset filters

5. Confirm the Record

When you click a record the row is highlighted. Click the Next button at the top right to proceed.

Record confirmation

Proceeding Without Selecting a Record

If no record is selected, Next gives a warning.


6. Excel Offline Sheet Selection

For Excel records, an additional Sheet dropdown appears.

Excel Offline sheet selection


7. Preview Execution

Preview execution

When you press Next, the record is executed and the result is held in memory.


8. Common Errors

Common errors

Symptom Likely Cause Resolution
Gauge shows value 0 Empty row Test the record in Compass
Multiple values LIMIT 1 missing Add LIMIT 1 to SQL
Value Source dropdown empty No numeric column Return a numeric column with CAST(... AS NUMERIC)

9. Next Step

04 — Linear Gauge Axis Design