The bar chart is another form of column chart, that is, the horizontal column chart.  Generally, the bar chart is used to analyze the top scenario and the configuration method is similar to that of the column chart.

Basic Components

  • X axis (vertical axis)
  • Y axis (horizontal axis)
  • Rectangular block
  • Legend

The height of the rectangular block in the bar chart is fixed and the width of the rectangular block indicates the numeric value. Use the grouped bar chart to display the data if multiple columns of data are mapped to the Y axis.

Configuration item

Table 1. Description
Description Description
X axis  Generally, the X axis indicates the data types. 
Y axis You can configure one or more columns of data to correspond to the value interval of the Y axis.
Legend The location where the legend is in the graph. You can configure the legend to the top, bottom, left, or right of the graph.
Padding The distance between the coordinate axis and the graph boundary.


  1. On the query page, enter the query statement in the search box, select the time interval, and then click Search.
  2. Click the Graph tab and select the bar chart .
  3. Configure the graph properties.
    • Use the bar chart if the number of data types is no more than 20. We recommend that you use LIMIT to control the number of data types in case that the vertical height is so large that the analytical comparison is not intuitive, and use theORDER  BY syntax when analyzing the top scenario.  We also recommend that you have no more than five columns of data to map to the Y axis.
    • Supports grouped bar chart, but data in all groups of the bar chart must indicate the increase or decrease at the same time.

Simple bar chart

To analyze the top 10 request_uri with the largest number of visits, the statement is as follows:

* | select request_uri, count(1) as count group by request_uri order by count desc limit 10
Figure 1. Simple bar chart