Data API + Baidu SugarBI: Build a Visual Dashboard
Use the data API feature to push data collected by CaoLiao into Baidu SugarBI, where you can freely use the data to build the dashboards you need. SugarBI is a visualization tool developed by Baidu and requires a paid subscription at ¥480/year.
CaoLiao has completed integration with Baidu SugarBI. Dashboards built in SugarBI can be embedded directly in CaoLiao's mini program for in-app access.
Part 1: Example Dashboards
1. Device Status and Inspection Plan Completion Analysis
Quickly view key plan completion rates and incomplete counts. Click to see the detailed device list. Filter by date range as needed. View example

2. Inventory In/Out Statistics and Detail Query
Enter a product category name to query current stock levels and in/out quantities. View example

More examples: Visual Dashboard Case Collection
Before You Begin
The dashboards above were built using CaoLiao's data API feature + Baidu SugarBI.
1. Data API Overview
CaoLiao provides an official database feature. QR code data, form data, status and plan data on the CaoLiao platform are synced in real time to a dedicated Alibaba Cloud database. Connect an external BI (data analytics) tool to this database to build the dashboards you want. View official database documentation
API data is only pushed based on the features you have configured in CaoLiao. For example: if you've set up the status feature,
code_state(QR code status data) will be pushed; if you've created and started a plan,code_task_log(plan execution data) will be pushed. Data is not pushed for features that haven't been set up or have no data.
We recommend waiting until your QR codes have data before building visual dashboards.
2. Baidu SugarBI
SugarBI is a data visualization tool developed by Baidu. It is recommended for its affordable pricing (recommended basic version: ¥480/year), real-time data refresh, and a 1-month free trial.
Part 2: Tutorial
1. Enable CaoLiao's Official Database
In the CaoLiao workbench, click [Data Management] → [Data API] on the left, and select [official database] (Go to activate). 
After activation, you will receive connection info similar to the following:
Type: MySQL 5.7
Host: rm-bp1m4fy8d66u3c6xmbo.mysql.rds.aliyuncs.com
Port: 3306
Database name: cli_13268724 (example)
Username: cli_13268724 (example)
Password: ekiji17jd02jk9md (example)
2. Register and Use Baidu SugarBI
Baidu Sugar official website: https://cloud.baidu.com/product/sugar.html
Baidu Sugar documentation: https://cloud.baidu.com/doc/SUGAR/s/ek6z5wq34
3. Baidu SugarBI Video Tutorial
The video tutorial is split into two parts:
- Part 1: Data analysis workflow and preparation work (approx. 5 minutes)
- Part 2: Building reports with Baidu SugarBI (approx. 15 minutes)
4. Step-by-Step Guide to Connecting Baidu SugarBI
Basic flow: Connect data source → Create data model → Build report → Preview and share
Step 1: Connect the Data Source
In SugarBI, go to [Resource Center] → [Data Management] → [Data Sources] → [Add Data Source]. Select type: MySQL 5.X, enter the CaoLiao official database credentials, and click Add. 
Step 2: Create a Data Model
Data models are used to power the charts in your reports. Go to [Data Models] → [New Data Model]. When creating data models, you'll be working with the tables from CaoLiao's Data API. View data table documentation 
After creating a model, you'll enter the model editor. The left panel lists all available data tables from your data source — drag the tables you want to analyze into the center area. 
Here are some commonly recommended data models:
Model 1: Device Status Analysis
Join base_codeinfo (QR code basic info table) with code_state (QR code status table) to get the status value and update time for each device, enabling status distribution analysis. 
Model 2: Plan Completion Status
Left join code_task_log (plan execution log) with base_codeinfo (QR code basic info table) to get plan completion data linked to its corresponding QR code info.

Model 3: Bulk Code Analysis
Left join template_XXXXXX (bulk code info table) with table_dXX (form data table) and code_state (QR code status table). template_XXXXXX provides the variable content for each sub-code. 
Model 4: Link Sequential Form Records
For example, if you have a fault report record with a repair record form added as a follow-up action, link these two records to get the complete picture. View Follow-Up Actions feature Left join table_dxx (fault report form) with table_dxx (repair record form) on the record serial number and source record number fields. Add additional left joins for any further follow-up forms. 
Step 3: Create a Report
SugarBI supports both reports and large screens (display boards). This guide covers report creation — large screens follow the same approach. The difference: large screens are single-page and allow precise layout editing; reports are scrollable and better suited for internal analysis sharing. 
Step 4: Add Charts and Bind Data
In the report editor, use the toolbar at the top to add a chart (e.g., a donut chart). 
Follow these steps to bind data model fields to the donut chart for visualization. 
- Click the donut chart to select it. The [Control Panel] on the right will show its configuration options.
- Select the data model to use.
- Drag the status dimension field from
code_task_logto the "Sector Name" slot. - Drag the record count measure field to the "Sector Size" slot — the donut chart will automatically visualize plan completion status (completed vs. incomplete).
- Drag and resize charts as needed. Add more charts following the same steps.
- Click [Save] and [Exit] in the top right corner.
Step 5: Share the Dashboard
After building your dashboard, you can share it. Set sharing (publish) to public and copy the link. 
Part 3: Community & Learning
You may encounter various questions during implementation. Visit the CaoLiao Community to browse related discussions or post your own questions. Connect with data report experts, and CaoLiao's official consultants and engineers check in regularly to respond.