Reference Guide
Reporting

Creating Charts for Reporting

3min

Any chart can be added and adjusted from the Reporting section of Single Connect:

  1. Navigate to Dashboard > Reports > SQL Lab.
  2. Once the database has been selected, the user can run any desired query from the SQL editor, and then save or visualize it. Saved queries can be accessed from the Saved Queries section under the SQL Lab.

Once the user runs the query, the results collected from the database are shown on the Results section, as illustrated in the figure below.

Running queries from SQL Editor to Create a Chart
Running queries from SQL Editor to Create a Chart


Once the user clicks on the Visualize button, it is possible to select different visualization types from the Chart Type section, as well as the parameters that user needs to add or remove.

User selects Chart Type and Columns to Create a Chart
User selects Chart Type and Columns to Create a Chart


Example:

Since select * from t_device query has been executed and the Table View visualization type has been selected, Superset will show results of the selected columns in Table view. Also, the time filter can be edited, and columns can still be adjusted from the Group By section. The User can edit the chart name as well.

Adjusting Chart Properties
Adjusting Chart Properties


The result might change, depending on the time filter, and selected columns & functions in the Group By section. Once the user makes adjustments , he/she needs to run the query again from the Run Query section to see the updated result. When adjustments are ready, and once the user clicks the Save button, a pop-up window providing the following options will open:

  • Overwrite chart
  • Save as a new chart
  • Link created chart to dashboard
Overwrite or Save New Chart and Link to Dashboard
Overwrite or Save New Chart and Link to Dashboard


After saving, the desired chart can be found under the Chart section of the Reporting tab.

Created Charts in the Reporting section “Charts” tab
Created Charts in the Reporting section “Charts” tab