maxRange

Specifies the maximum range that can be selected.

Default Value: undefined
Accepted Values: 'millisecond' | 'second' | 'minute' | 'hour' | 'day' | 'week' | 'month' | 'quarter' | 'year'

Use this property to set the maximum range that can be selected. When trying to move a slider from the other slider further than the specified maximum range, the marker will display the last possible value that can be set and change the font color to 'red'. You can set which color to use to indicate an invalid range. For this purpose, use the invalidRangeColor property of the sliderMarker configuration object.

In case of the numeric scale, assign a numeric value to this property. If the scale is of the date-time type, assign one of the predefined string values or an object to this property. The object's properties specify the number of days, hours, etc.

NOTE
Setting a maximum range is unavailable for a discrete scale.

You can also set a minimum range that can be selected, using the minRange property.

Show Example:
jQuery

In this example, the maxRange option is set to 'month'.


                                    

                                    

days

Specifies the time interval measured in days. Available only for an axis/scale displaying date-time values.

Type: Number

Show Example:
jQuery

In this example, the maxRange option is set to 14 days.


                                    

                                    

hours

Specifies the time interval measured in hours. Available only for an axis/scale displaying date-time values.

Type: Number

Show Example:
jQuery

In this example, the maxRange option is set 12 hours.


                                    

                                    

milliseconds

Specifies the time interval measured in milliseconds. Available only for an axis/scale displaying date-time values.

Type: Number

Show Example:
jQuery

In this example, the maxRange option is set to 10000 milliseconds.


                                    

                                    

minutes

Specifies the time interval measured in minutes. Available only for an axis/scale displaying date-time values.

Type: Number

Show Example:
jQuery

In this example, the maxRange option is set to 10 minutes.


                                    

                                    

months

Specifies the time interval measured in months. Available only for an axis/scale displaying date-time values.

Type: Number

Show Example:
jQuery

In this example, the maxRange option is set to 3 months.


                                    

                                    

quarters

Specifies the time interval measured in quarters. Available only for an axis/scale displaying date-time values.

Type: Number

seconds

Specifies the time interval measured in seconds. Available only for an axis/scale displaying date-time values.

Type: Number

Show Example:
jQuery

In this example, the maxRange option is set to 30 seconds.


                                    

                                    

weeks

Specifies the time interval measured in weeks. Available only for an axis/scale displaying date-time values.

Type: Number

years

Specifies the time interval measured in years. Available only for an axis/scale displaying date-time values.

Type: Number

Show Example:
jQuery

In this example, the maxRange option is set to 5 years.