Hierarchy
Ext.chart.axis.AbstractExt.chart.axis.AxisExt.chart.axis.Time
A type of axis whose units are measured in time values. Use this axis for listing dates that you will want to group or dynamically change. If you just want to display dates as categories then use the Category class for axis instead.
For example:
axes: [{
type: 'Time',
position: 'bottom',
fields: 'date',
title: 'Day',
dateFormat: 'M d',
groupBy: 'year,month,day',
aggregateOp: 'sum',
constrain: true,
fromDate: new Date('1/1/11'),
toDate: new Date('1/7/11')
}]
In this example we're creating a time axis that has as title Day.
The field the axis is bound to is date
.
The date format to use to display the text for the axis labels is M d
which is a three letter month abbreviation followed by the day number.
The time axis will show values for dates between fromDate
and toDate
.
Since constrain
is set to true all other values for other dates not between
the fromDate and toDate will not be displayed.
If minimum
and maximum
are specified it forces the number of major ticks to the specified value.
If minimum
and maximum
are specified it forces the number of major ticks to the specified value.
The number of small ticks between two major ticks. Default is zero.
The number of small ticks between two major ticks. Default is zero.
Aggregation operation when grouping. Possible options are 'sum', 'avg', 'max', 'min'. Default's 'sum'.
Aggregation operation when grouping. Possible options are 'sum', 'avg', 'max', 'min'. Default's 'sum'.
The minimum value drawn by the axis. If not set explicitly, the axis minimum will be calculated automatically.
The minimum value drawn by the axis. If not set explicitly, the axis minimum will be calculated automatically.
If true, the values of the chart will be rendered only if they belong between the fromDate and toDate. If false, the time axis will adapt to the new values by adding/removing steps. Default's [Ext.Date.DAY, 1].
Indicates the format the date will be rendered on. For example: 'M d' will render the dates as 'Jan 30', etc.
Indicates the format the date will be rendered on. For example: 'M d' will render the dates as 'Jan 30', etc.
An array with two components: The first is the unit of the step (day, month, year, etc). The second one is the number of units for the step (1, 2, etc.). Default's [Ext.Date.DAY, 1].
Renders the axis into the screen and updates it's position.
Renders the axis into the screen and updates it's position.