LineSeries
argumentField
When defining series using the series configuration object, set the argumentField property to the corresponding field from the data source for each series individually. If the field that supplies arguments for data points is called in a similar way for several series, there is no need to set the field name for each series individually. Instead, set the field name for the argumentField property of the commonSeriesSettings configuration object at once.
color
Color is used to distinguish one chart series from another. However, there can be cases when it is more appropriate to display all chart series in one color. In this case, set the color property of the commonSeriesSettings configuration object. If required, you can override this property's common value in individual series objects.
dashStyle
The following values are available.
- solid
Displays a solid, continuous line. - longDash
Displays the series using long dashes. - dash
Displays the series using dashes. - dot
Displays the series using dots. - any combination of 'longDash', 'dash' and 'dot'
Displays the series by repeating the specified combination. For instance, 'dashdotdash'.
Use the DashStyle
enum to specify this option when the widget is used as an ASP.NET MVC Control. This enum accepts the following values: Solid
, LongDash
, Dash
, and Dot
.
hoverMode
When a user points to the series, it may react in one of the following ways depending on the value of the hoverMode option.
- nearestPoint
The series changes its style along with the point that is nearest to the cursor. - includePoints
The series changes its style along with all the points. - excludePoints
The series changes its style, but the points do not. - none
The series does not react to pointing to it.
Use the ChartSeriesHoverMode
enum to specify this option when the widget is used as an ASP.NET MVC Control. This enum accepts the following values: NearestPoint
, IncludePoints
, ExcludePoints
, and None
. Note that although this enum accepts more values, only the listed ones can be applied to a line series.
See Also
- hoverStyle
- point.hoverMode
hoverStyle
To set a custom 'hover' style for all series at once, use the hoverStyle object within the commonSeriesSettings configuration object.
If you have several series of one type, you can set hover style options to the values specific to this type using the corresponding object (area, line or another) within the commonSeriesSettings configuration object. The values that are set within series-type-specific configuration objects override the corresponding common values.
In case you have to set a hover style option for an individual series, use the hoverStyle object within the series object of the series array. The values that are set individually override corresponding common values.
label
An object defining the label configuration options.
Each series point can be accompanied by a text label that represents data related to the point. These are called series point labels. Use the label object's properties to set label options for all chart series at once.
Specify the label object's properties within the commonSeriesSettings configuration object to set label options for all chart series at once.
If you have several series of a single type, you can set label options to the values specific to this series type using the corresponding object (area, line, etc.) within the commonSeriesSettings configuration object. The values that are set within series-type-specific configuration objects override the corresponding common values.
If you need to set a label option for an individual series, use the label object within the series object of the series array. The values that are set individually override the corresponding common values.
maxLabelCount
Specifies how many points are acceptable to be in a series to display all labels for these points. Otherwise, the labels will not be displayed.
When there are several series in a chart and series with a large number of points, the point labels may overlap each other and make a chart difficult to read. In this instance, it is better to display the point labels depending on their quantity. To specify the maximum amount of the labels to be displayed, set the required number to the maxLabelCount field. If the number of the points on a series exceeded the number assigned to the maxLabelCount field, the point labels for this series will not be displayed.
point
An object defining configuration options for points in line and area series.
To specify point options for all line and area series at once, use the properties of the point object defined within the commonSeriesSettings configuration object.
If you have several series of a single type, you can set point options to the values specific to this series type using the corresponding object (area, line etc.) within the commonSeriesSettings configuration object. The values that are set within series-type-specific configuration objects override their corresponding common values.
If you need to set a point option for an individual series, use the point object within the series object of the series array. The values that are set individually override their corresponding common values.
selectionMode
When a user selects the series, it may react in one of the following ways depending on the value of the selectionMode option.
- includePoints
The series changes its style along with all the points. - excludePoints
The series changes its style, but the points do not. - none
The series does not react to selection.
Use the ChartSeriesSelectionMode
enum to specify this option when the widget is used as an ASP.NET MVC Control. This enum accepts the following values: IncludePoints
, ExcludePoints
, and None
. Note that although this enum accepts more values, only the listed ones can be applied to a line series.
See Also
- selectionStyle
- point.selectionMode
selectionStyle
The PolarChart widget comes with API members that allow you to select a series in code. To set a custom 'selected' style for all series at once, use the selectionStyle object within the commonSeriesSettings configuration object.
If you have several series of one type, you can set selection style options to the values specific to this type using the corresponding object (area, line or another) within the commonSeriesSettings configuration object. The values that are set within series-type-specific configuration objects override the corresponding common values.
In case you have to set a selection style option for an individual series, use the selectionStyle object within the series object of the series array. The values that are set individually override corresponding common values.
tagField
When setting a common data source via the dataSource property, you can pass information about a point. For this purpose, add a separate field to the data source in addition to the argument and value fields. To set the specified data to the point instance, set the series' tagField property to the name of the field with the information. In this instance, when clicking a point in the chart, you can access the data associated with this point using the point's instance.
When defining series using the series configuration object, set the tagField property to the corresponding field from the data source for each series individually. If the field that supplies data about points is called similarly in several series, there is no need to set its name for each series individually. Instead, set it for the tagField property of the commonSeriesSettings configuration object.
You can also associate data with a series instance. To learn how to do this, refer to the description of the tag property of the series configuration object.
valueErrorBar
Error bars are used on charts to indicate an error or an uncertainty in a reported measurement. They give a general idea of how precise a measurement is.
In PolarChart, an error bar is a vertical bar with two marks at its edges. An error bar accompanies a series point. Error bars can be generated either from concrete or calculated values. To generate one error bar, two values, high and low, are needed. If the data source of your chart provides concrete high and low values, assign the required data source fields to the highValueField and lowValueField options.
Alternatively, you can calculate the high and low error bar values automatically. For this purpose, choose one of error bar types and specify the value to be used in calculation.
valueField
When defining series using the series configuration object, set the valueField property for each series individually to the corresponding field from the data source. In case you use series templates, specify the valueField property of the commonSeriesSettings configuration object.
visible
When this option is set to false for a series, the series appears invisible. If you require all the series to appear so, assign the same value to the visible option within the commonSeriesSettings configuration object.
In addition, you can show/hide series at runtime by using the show() or hide() method of a particular series respectively.
If you have technical questions, please create a support ticket in the DevExpress Support Center.
We appreciate your feedback.