This topic describes how to configure the chart type for a flow chart, including line charts, area charts, column charts, and cross tables.
Prerequisites
Log data is collected. For more information, see Collect text logs from hosts.
Indexes are created. For more information, see Create an index.
Overview

-
Search & Analysis: Use this feature to query and analyze logs in the Log Service console for tasks such as log searches, aggregation, and statistical analysis.
-
Add a chart: A dashboard consists of multiple charts. Each chart represents one or more query and analysis statements.
-
Configure chart types (line, area, column, and cross table): Set the type for the flow chart.
Step 1: Query and analyze data
Log on to the Simple Log Service console. In the Projects section, click the project you want.

On the tab, click the logstore you want.

-
Enter a query and analysis statement, and then click Last 15 Minutes to set the time range for the query.
Example:
-
The following is an example statement:
* | select __time__,count(0) as pv group by request_method,__time__
-
Step 2: Add a chart
In the left-side navigation pane, choose . In the Dashboard list, click the dashboard you want. In the upper-right corner of the dashboard page, click Edit. In edit mode, choose .

-
In the . On the Search & Analysis tab, select Logstore (SQL), choose the target Logstore, and enter a query statement.
In the upper-right corner of the page, select a time range, such as Last 15 Minutes. Then, click .
-
Under , set Axis X Field to
__time__and Axis Y Field topv.
The __time__ field for the x-axis uses the UNIX timestamp format. To display the time in a standard format, enable Time Series Mode and set Format for the x-axis to
YYYY-MM-DD hh:mm:ss. For more information, see Time series mode.
-
Step 3: Configure chart types
Line chart
To display the pv field as a line chart, choose .

Area chart
To display the pv field as an area chart, choose .

Column chart
To display the pv field as a column chart, choose .

Cross table
To display the pv field as a cross table, choose .

