Search results

Axis3DModel API in JavaScript (ES5) Chart3d API control

Interface for a class Axis3D

Properties

columnIndex

number

Specifies the index of the column where the axis is associated, when the chart area is divided into multiple plot areas by using columns.

<div id='Chart3D'></div>
let chart3D: Chart3D = new Chart3D({
...
    columns: [{ width: '50%' },
              { width: '50%' }],
    axes: [{
               name: 'xAxis 1',
               columnIndex: 1,
    }],
...
});
chart3D.appendTo('#Chart3D');

desiredIntervals

number

With this property, you can request axis to calculate intervals approximately equal to your specified interval.

edgeLabelPlacement

EdgeLabelPlacement

Specifies the position of labels at the edge of the axis.They are,

  • None: No action will be performed.
  • Hide: Edge label will be hidden.
  • Shift: Shifts the edge labels.

enableTrim

boolean

Specifies the Trim property for an axis.

interval

number

Specifies the interval for an axis.

intervalType

IntervalType

Specifies the types like Years, Months, Days, Hours, Minutes, Seconds in date time axis.They are,

  • Auto: Defines the interval of the axis based on data.
  • Years: Defines the interval of the axis in years.
  • Months: Defines the interval of the axis in months.
  • Days: Defines the interval of the axis in days.
  • Hours: Defines the interval of the axis in hours.
  • Minutes: Defines the interval of the axis in minutes.

isIndexed

boolean

Specifies indexed category axis.

isInversed

boolean

It specifies whether the axis to be rendered in inversed manner or not.

labelFormat

string

Used to format the axis label that accepts any global string format like ‘C’, ‘n1’, ‘P’ etc. It also accepts placeholder like ‘{value}°C’ in which value represent the axis label, e.g, 20°C.

labelIntersectAction

LabelIntersectAction

Specifies the actions like None, Hide, Trim, Wrap, MultipleRows, Rotate45, and Rotate90 when the axis labels intersect with each other.They are,

  • None: Shows all the labels.
  • Hide: Hides the label when it intersects.
  • Trim: Trim the label when it intersects.
  • Wrap: Wrap the label when it intersects.
  • MultipleRows: Shows the label in MultipleRows when it intersects.
  • Rotate45: Rotates the label to 45 degree when it intersects.
  • Rotate90: Rotates the label to 90 degree when it intersects.

labelPadding

number

Specifies the labelPadding from axis.

labelPlacement

LabelPlacement

Specifies the placement of a label for category axis. They are,

  • betweenTicks: Renders the label between the ticks.
  • onTicks: Renders the label on the ticks.

labelRotation

number

The angle to which the axis label gets rotated.

labelStyle

ThreeDimensionalFontModel

Options to customize the axis label.

logBase

number

The base value for logarithmic axis. It requires valueType to be Logarithmic.

majorGridLines

MajorGridModel

Options for customizing major grid lines.

majorTickLines

MajorTickModel

Options for customizing major tick lines.

maximum

Object

Specifies the maximum range of an axis.

maximumLabelWidth

number

Specifies the maximum width of an axis label.

maximumLabels

number

The maximum number of label count per 100 pixels with respect to the axis length.

minimum

Object

Specifies the minimum range of an axis.

minorGridLines

MinorGridModel

Options for customizing minor grid lines.

minorTickLines

MinorTickModel

Options for customizing minor tick lines.

minorTicksPerInterval

number

Specifies the number of minor ticks per interval.

name

string

Unique identifier of an axis. To associate an axis with the series, set this name to the xAxisName/yAxisName properties of the series.

opposedPosition

boolean

If set to true, the axis will render at the opposite side of its default position.

plotOffset

number

Left and right padding for the plot area in pixels.

plotOffsetBottom

number

Bottom padding for the plot area in pixels.

plotOffsetLeft

number

Left padding for the plot area in pixels.

plotOffsetRight

number

Right padding for the plot area in pixels.

plotOffsetTop

number

Top padding for the plot area in pixels.

rangePadding

ChartRangePadding

Specifies the padding for the axis range in terms of interval.They are,

  • none: Padding cannot be applied to the axis.
  • normal: Padding is applied to the axis based on the range calculation.
  • additional: Interval of the axis is added as padding to the minimum and maximum values of the range.
  • round: Axis range is rounded to the nearest possible value divided by the interval.

rowIndex

number

Specifies the index of the row where the axis is associated, when the chart area is divided into multiple plot areas by using rows.

<div id='Chart3D'></div>
let chart3D: Chart3D = new Chart3D({
...
    rows: [{ height: '50%' },
           { height: '50%' }],
    axes: [{
               name: 'yAxis 1',
               rowIndex: 1,
     }],
...
});
chart3D.appendTo('#Chart3D');

skeleton

string

Specifies the skeleton format in which the dateTime format will process.

skeletonType

SkeletonType

It specifies the type of format to be used in dateTime format process.

span

number

Specifies the number of columns or rows an axis has to span horizontally or vertically.

startFromZero

boolean

It specifies whether the axis to be start from zero.

title

string

Specifies the title of an axis.

titlePadding

number

Specifies the titlePadding from axis label.

titleRotation

number

Defines an angle to rotate axis title. By default, angle auto calculated based on position and orientation of axis.

titleStyle

ThreeDimensionalFontModel

Options for customizing the axis title.

valueType

ValueType

Specifies the data types that the axis can handle:

  • Double: This type is used for rendering a numeric axis to accommodate numeric data.
  • DateTime: This type is utilized for rendering a date-time axis to manage date-time data.
  • Category: This type is employed for rendering a category axis to manage categorical data.
  • Logarithmic: This type is applied for rendering a logarithmic axis to handle a wide range of values.
  • DateTimeCategory: This type is used to render a date time category axis for managing business days.

visible

boolean

If set to true, axis label will be visible.