This topic describes how to configure a trail chart to display query results. The topic also provides an example.
A trail chart uses an AMap to display the trail of a target over a period of time. A trail chart can be created based on points of interest (POI) or latitudes and longitudes.
- Map canvas
- Points and lines
- Log on to the Log Service console.
- Click the target project in the Projects section.
- Choose , click the management icon of the target Logstore, and then select .
- Enter a query statement in the search box, select a time range, and then click Search & Analyze.
- Click to display the query results in a trail chart.
- On the Properties tab, configure the properties of the chart.
Parameter Description Trail Type The type of the trail chart. Valid values: Longitude/Latitude and POI. Identity Column Select a field to identify trail data. Information Column Select one or more fields to be displayed on the chart.
You can click a point on the trail chart, and the information will be displayed on a pop-up window.
Longitude If you set Trail Type to Longitude/Latitude, you must set this parameter. Select the field in which the longitude data is included. Latitude If you set Trail Type to Longitude/Latitude, you must set this parameter. Select the field in which the latitude data is included. POI Field If you set Trail Type to POI, you must set this parameter. Select the field in which the POI data is included.
- SQL statement
type:trace | select location, __time__, id, action, text
location __time__ action id text Village A, Longhua district 1582892272 Drive home 170 In the morning of February 24, confirmed case No.170 drove home along with confirmed cases No.136 and No.143 from Haikou city center to village A of Longhua district. Village A, Longhua district 1582892272 Stay home 170 Confirmed case No.170 stayed home from February 25 to February 27, but met confirmed case No.123. Village A, Longhua district 1582892272 Drive to Haikou 170 In the morning of February 28, confirmed case No.170 drove from village A of Longhua district to Haikou and parked to buy food at the wet market in Longqiao town.
- Trail charts