How to Create Visual Reports

Turning complex data into clear charts and reports gives you business insight quickly and boosts efficiency. This article introduces two common ways to make visual reports: connecting CaoLiao form data to Tencent Docs to make smart reports, and using CaoLiao QR Code's Data API with SugarBI to build a visual dashboard.

  • Approach: connect form data to Tencent Docs to make smart reports; Data API + SugarBI
  • Role: simple, quick report generation that suits everyday data management and team collaboration; advanced data analysis and customized visualization that suit complex data display and in-depth analysis
  • Difficulty: simple to operate with no complex setup; requires some experience with BI tools
  • Cost: free, and the basic features cover daily use; if you open a membership you get Tencent Docs advanced features (Tencent membership ¥30/month); SugarBI Basic Edition is ¥480/year, with a one-month free trial
  • Data freshness: real-time sync, data is always up to date; real-time sync, data is always up to date
  • Strengths: flexible collaboration, easy to use; highly customizable, supports complex charts and dashboards
  • Weaknesses: relatively simple features, not suited to complex data analysis. For example, in an inspection scenario you can only see the number of checks done and can't directly analyze what hasn't been checked; it costs money and has a learning curve

I. Example Results​

1. Real-World Examples of Connecting to Tencent Docs for Smart Reports:​

Equipment Status and Completed Inspections Dashboard​

Counts inspections by week, month, year, and so on, shows the trend of inspection results, the total number of normal and abnormal pieces of equipment, and more. See the example alt

Visitor Registration Dashboard​

Draws a line chart from the number of daily visitors, and can also make pie charts, bar charts, and more for the visitors' organizations and reasons for visiting. See the example alt

More examples: Tencent smart sheet visual dashboard cases

2. Examples of Reports Made with Data API + SugarBI:​

Equipment Status and Inspection Plan Completion Analysis​

You can quickly see the completion rate of key plans and the number not completed, and click to see the equipment list in detail. You can also filter completion for a given date range. See the example

Equipment status analysis chart

Goods In/Out Inventory Statistics and Detail Query​

Supports entering a category name to query current stock and the quantities in and out. See the example

Inventory statistics chart

More examples: Visual dashboard case collection

II. Making Tutorial​

1. Connect to Tencent Docs to Make Smart Reports​

Step 1: Sync the QR Code Data to Tencent Docs​

Choose the data you want to make a report from, and on the [Data Page] of a bulk template, single code, or form, click Sync to Tencent Docs to start syncing alt

Step 2: Start Making the Report​

Making tutorial: alt

alt

Making charts in a Tencent Docs smart sheet is very simple, and you can make polished dashboards with a few mouse clicks. To learn more, see Tencent Docs' official tutorial: See the official tutorial

2. Data API + SugarBI to Make Reports​

Step 1: Turn on CaoLiao's Official Database​

After logging in to CaoLiao, go to Data Management - Data API on the left of the workbench and choose Official Database (Go to use). CaoLiao official database screen

An example of the database you get after the official database application succeeds:

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)

The official database is an independent cloud database provided by CaoLiao that syncs your workbench data. You can connect data analytics software to this cloud database to make data reports, or write a program to call the data actively and connect other systems. See the official database guide API data is pushed according to the features you set up in CaoLiao, for example: if you set up the status feature in the workbench, code_state is pushed, which is the codes' status data; once you add a plan in the workbench and it runs, code_task_log is pushed, which is the codes' plan completion data; if the related feature isn't set up or no data has been produced, nothing is pushed.

We suggest making the visual dashboard after you have used the QR codes and the related data has been produced.

Step 2: Register for and Use SugarBI​

SugarBI website: https://cloud.baidu.com/product/sugar.html

SugarBI documentation: https://cloud.baidu.com/doc/SUGAR/s/ek6z5wq34

SugarBI is a data visualization tool developed by Baidu. We recommend SugarBI because it is cheap (the recommended Basic Edition costs ¥480/year), its data updates in real time, and it offers a 1-month free trial.

Step 3: Make the Report​

See the SugarBI video tutorial The video tutorial comes in two parts:

  • Part 1 introduces the data analysis process and preparation (about 5 minutes);
  • Part 2 introduces making reports with SugarBI (about 15 minutes).

Step 4: Step-by-Step Guide to Connecting SugarBI​

Basic flow: connect the data source - create a data model - make the report - preview and share

(1) Connect the Data Source​

In SugarBI, choose Resource Center - Data Management - Data Source - Add Data Source, choose the type MySQL 5.X, fill in the official database information provided by CaoLiao, and add it. SugarBI connect data source screen

(2) Create a Data Model​

Data models are used to display data in later charts. Choose Data Model - New Data Model. When creating a data model you will use the tables in the CaoLiao Data API, see the table descriptions Create data model screen

After you create the new data model in the previous step, you enter the model's edit page, where the left side lists all the tables in the data source. Drag the tables you want to analyze to the middle area of the page Drag tables to the analysis area

Here are some commonly used data models we recommend:

Model 1: Equipment status analysis

Within base_codeinfo (the codes' basic information table), join code_state (the codes' status table) to get each piece of equipment's status value and update time, and analyze the status distribution. Equipment status analysis model

Model 2: Plan completion

Left-join code_task_log (the plan execution table) to base_codeinfo (the codes' basic information table) to get plan completion together with the matching code information.

Plan completion model

Model 3: Bulk code analysis

Left-join template_XXXXXX (the bulk code information table) to table_dXX (the form data table) and code_state (the codes' status table). template_XXXXXX gives you the codes' variable content information. Fault report table screenshot

Model 4: Linking follow-up form records

For example, add a repair record form to the fault report records, and link the two records to get the complete information. Introduction to adding follow-up actions Left-join table_dxx (the fault report table) to table_dxx (the repair record form), with the join condition being record number and source number. If there are more follow-up forms, you can left-join those forms too. Repair record form screenshot

(3) Create the Report​

SugarBI can make reports and large screens; this section covers creating a report, and large screens work the same way. The difference is that a large screen shows everything on one screen with fine-grained editing of each chart, while a report scrolls up and down, holds more content, and is easier to share for internal analysis. Create report screen

(4) Add a Chart and Bind Data​

In the report editor, you can add a chart (such as a ring pie chart) from the toolbar at the top of the page Add chart toolbar

Follow these steps to bind fields from the data model to the ring pie chart for visualization Data binding steps

  1. Click to select the ring pie chart you want to work on, and the "Control Panel" on the right of the page shows that chart's settings
  2. Choose the data model to use
  3. Drag the status dimension field of the code_task_log table to the sector name
  4. Drag the record count measure field to the sector size, and you will see the ring pie chart automatically show a checked/unchecked chart summarized by plan completion
  5. You can drag the chart to move it and adjust its size. You can also add other charts to the page, all with operations similar to the ring pie chart above.
  6. Click "Save" at the upper right of the page and then "Exit".
(5) Share and Use​

After you have freely built the dashboard content, you can share it: set sharing (publishing) to public and copy the link Share link screen

III. Learning and Discussion​

You may run into all kinds of questions as you work. You can go to the CaoLiao community to see related questions or ask your own, exchange tips with data report experts, and CaoLiao's official consultants and technical staff also check and reply regularly