For its clear demonstration of the differences among multiple groups of data, a bar chart can be used to show data variations in a specific period of time or to compare different items, for example, to compare the traffic flows of a road crossing during different periods.
The bar chart and Line chart have similar components. They both include a category axis and a value axis.
Notice on creating a bar chart
|The color legend can be used when only one measurement field is set for the value axis. Otherwise, this feature is unavailable.|
The following uses the company_sales_record dataset as an example.
Scenario: Compare the transportation costs of different products in provinces of China East.
- Log on to the Quick BI console.
- Click Datasets to enter the dataset management page.
- Select company_sales_record dataset, and click Create Dashboard.
- Click Bar chart icon.
- In the dimension list, select area field, and add it to the filter.
We need to use the filter to select China East from the region list, as shown in the following figure.
- Click the filter icon and select Enum from the displayed dialog box.
- Select East and click OK.
- In the dimension list, locate the province and product_type options, and add them to the category axis area in sequence.
Note Make sure that the dimension type of the region and province fields have been switched from string to geological information.
- In the measurement list, locate the shipping_cost option, and add it to the value axis area.
- You can add the product_type field to the color legend.
Note The color legend can be used when only one measurement field is set for the value axis. Otherwise, this feature is unavailable.
- Click Update. The system automatically updates the chart.
- On the Style tab, you can edit the title, layout, and design of the chart.
Note For more information about Styles, see Set chart data.
- Click Save to save current dashboard.
To delete the current chart, point to the upper-right corner of the chart, and choose Delete from the shortcut menu.