This topic provides answers to frequently asked questions when you configure a polyline widget.
How do I configure multiple series?
If the data contains s fields, different s field values are different series (multiple polylines).
NoteStyles in configuration items are rendered in the order of the data by default. That is, if the data of the first appearance is series 2, the data of this series will be rendered in the style of the first series in the configuration items. If the series expects a specific ordering, it is recommended to use a filter to sort the data in advance to achieve the desired rendering effect.
You can use data series configuration items to set different style properties for multiple series.
When the number of data series is greater than the number of series in the configuration items, the series in the configuration items are looped to render the data.
In the following figure, Series 3 uses the configuration style of Series 1.
In the following figure, series 2 is the first data, so it is rendered in the style of the first series in the configuration items.
If the data does not contain s fields, all data is a series by default, that is, the data series configuration items only needs to configure the style attribute of one series (the first one takes effect when there are multiple series configuration items).
What is the relationship between series names and s fields in the data?
The configuration items Data Series is configured with a series style, and the Series Name determines the display text of the legend. You can customize the Series Name. When the Series Name is empty, the system searches for the value of the corresponding s field in the data. If the s exists, the value of the s field is used. Otherwise, the value is empty.