Top
You are looking at an outdated 7.7.0 version of this document. Switch to the 7.14.3 version to see the up to date information.

class anychart.scales.DateTime Improve this Doc

Extends: anychart.scales.DateTime

Define Datetime scale.
Note: To create instance use method anychart.scales#dateTime.

Methods Overview

Specific settings
maximumGap()Maximum gap settings.
minimumGap()Minimum gap settings.
minorTicks()Minor ticks settings.
softMaximum()Soft maximum settings.
softMinimum()Soft minimum settings.
ticks()Ticks settings.

Methods Description

maximumGap

Getter for the current scale maximum gap.

Returns:

number - The current scale maximum gap.

Try it:

Setter for the scale maximum gap.

Params:

Name Type Default Description
value number
0.1
Value from 0 to 1.

Returns:

anychart.scales.DateTime - Self instance for method chaining.

Try it:

minimumGap

Getter for the current scale minimum gap.

Returns:

number - The current scale minimum gap.

Try it:

Setter for the scale minimum gap.

Params:

Name Type Default Description
value number
0.1
Value from 0 to 1.

Returns:

anychart.scales.DateTime - Self instance for method chaining.

Try it:

minorTicks

Getter for set of scale ticks in terms of data values.

Returns:

anychart.scales.DateTimeTicks - An instance of class for method chaining.
Setter for set of scale ticks in terms of data values.

Params:

Name Type Description
value Object | Array An array of ticks to set.

Returns:

anychart.scales.DateTime - Self instance for method chaining.

Try it:

softMaximum

Getter for the current soft maximum.

Returns:

number - Current soft maximum.

Try it:

Setter for soft maximum.

Params:

Name Type Default Description
value number
null
Value to set

Returns:

anychart.scales.DateTime - Self instance for method chaining.

Try it:

softMinimum

Getter for the current soft minimum.

Returns:

number - Current soft minimum.

Try it:

Setter for soft minimum.

Params:

Name Type Default Description
value number
null
Value to set

Returns:

anychart.scales.DateTime - Self instance for method chaining.

Try it:

ticks

Getter for set of scale ticks in terms of data values.

Returns:

anychart.scales.DateTimeTicks - An instance of class for method chaining.
Setter for set of scale ticks in terms of data values.

Params:

Name Type Description
value Array An array of ticks to set.

Returns:

anychart.scales.DateTime - Self instance for method chaining.

Try it: