constantLineStyle

Specifies the appearance of all the widget's constant lines.

Type:

Object

Use this object to set the appearance options for the constant lines of both the argument and value axes. For example, you can change the color, dash style and width of the line using corresponding options or define the look of the labels using the label object.

To specify styles for the constant lines of the argument and value axis separately, use the constantLineStyle object within the argumentAxis or valueAxis configuration object correspondingly. Note that the options that are set within these objects override the corresponding options that are set within the commonAxisSettings.constantLineStyle object.

In addition, you can define the appearance of each constant line individually. For more information, refer to the argumentAxis.constantLines or valueAxis.constantLines object description.

Show Example:
jQuery

In the following example, several appearance options of the argument axis constant lines are changed. These lines are drawn in the yellowgreen color with a 2-pixel width. The dash style of the lines is changed to longDash. In addition, the constant line labels are colored in lightskyblue.


                                    

                                    

color

Specifies a color for a constant line.

Type:

String

Default Value: '#000000'

This option supports the following colors.

Show Example:
jQuery

In this example, the argument axis constant lines are drawn in the powderblue color using the color option.


                                    

                                    

dashStyle

Specifies a dash style for a constant line.

Type:

String

Default Value: 'solid'
Accepted Values: 'solid' | 'longDash' | 'dash' | 'dot'

The following values are available.

  • solid
    Displays a solid, continuous constant line.
  • longDash
    Displays a constant line using long dashes.
  • dash
    Displays a constant line using dashes.
  • dot
    Displays a constant line using dots.
  • Any combination of 'longDash', 'dash' and 'dot'
    Displays a constant line by repeating the specified combination. For instance, 'dashdotdash'.

When using the widget as an ASP.NET MVC Control, specify this option using the DashStyle enum. This enum accepts the following values: Solid, LongDash, Dash and Dot.

Show Example:
jQuery

In the following example, the argument axis constant lines are drawn in the dotlongDash style using the dashStyle option.


                                    

                                    

label

An object defining constant line label options.

Type:

Object

A constant line label shows information on the constant line. Use the label object to configure all the constant line labels simultaneously. Within this object you can set font options, a position and text using corresponding fields.

To specify styles for the constant line labels of the argument and value axis separately, use the argumentAxis.constantLineStyle.label or valueAxis.constantLineStyle.label configuration object correspondingly. Note that the options that are set within these objects override the corresponding options that are set within the commonAxisSettings.constantLineStyle.label object.

In addition, you can define the appearance of each constant line label individually. For more information, refer to the argumentAxis.constantLines.label or valueAxis.constantLines.label object description.

Show Example:
jQuery

In the following example, the argument axis constant line labels are drawn in the rosybrown color.


                                    

                                    

width

Specifies a constant line width in pixels.

Type:

Number

Default Value: 1

Show Example:
jQuery

In this example, the argument axis constant lines are drawn with a 2-pixel width.