minRange

Specifies the minimum range that can be selected.

Type:

Number

|

Object

|

String

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

Use this property to set the minimum range that can be selected. When moving a slider to a position near the other slider that is closer than the specified minimum range, the marker will display the last possible value that it can be set to, and change the font color to 'red'. You can set the color used to indicate an invalid range by using the invalidRangeColor property of the sliderMarker configuration object.

NOTE
For a discrete scale, setting a minimum range is not an option. For a semidiscrete scale, setting a minimum range is, conversely, required.
NOTE
The minRange property specifies the minimum range that can be selected in the UI. If you select a range in code, for example, using the setValue(value) method, the minRange property will be ignored.

You can also set the maximum range that can be selected using the maxRange property.

Show Example:
jQuery

In this example, the minRange option is set to 'week'.


                                    

                                    

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 minRange 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 minRange 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 minRange 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 minRange 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 minRange 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 minRange 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 minRange option is set to 5 years.