The flow diagram, also known as ThemeRiver, is a stacked area chart around the central axis. The banded branches with different colors indicate different types of information. The band width indicates the corresponding numeric value. In addition, the centralized time attribute of the original data maps to the X-axis, which forms a three-dimensional relationship.

You can switch a flow diagram to a line chart or column chart. Note that the column chart is displayed in the stacked form by default, and the start point of each data type is at the top of the last column.


  • X-axis (horizontal)
  • Y-axis (vertical)
  • Band


  1. On the search page of a Logstore, enter a query and analysis statement in the search box, set the time range, and then click Search & Analysis.
  2. On the Graph tab, click to select the flow diagram.
  3. On the right-side Properties tab, configure the properties of the flow diagram.


Configuration item Description
Chart Types The type of the chart. Valid values: Line Chart, Area Chart, and Column Chart. Default value: Line Chart.
X Axis The data on the X-axis, which is usually a time sequence.
Y Axis The numeric data. You can map one or more columns of data to the Y-axis.
Aggregate Column The information required to be aggregated in the third dimension.
Legend The position where the legend is located in the chart. Valid values: Top, Bottom, Left, and Right.
Format The format in which data is displayed.
Margin The distance of the axis to the borders of the chart, including Top Margin, Bottom Margin, Right Margin, and Left Margin.


The flow diagram is suitable for the display of a three-dimensional relationship among time, type, and value.

* | select date_format(from_unixtime(__time__ - __time__% 60), '%H:%i:%S') as minute, count(1) as c,  request_method group by minute, request_method order by minute asc limit 100000

Select minute for X Axis, c for Y Axis, and request_method for Aggregate Column.

Figure 1. Flow diagram