Search results

AxisDirective API in Angular Chart API component

Axis Directive

<e-axes><e-axis></e-axis></e-axes>

Properties

border

any

Border of the multi level labels.

coefficient

any

The polar radar radius position.

Defaults to 100

columnIndex

any

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

Defaults to 0

crossesAt

any

Specifies the value at which the axis line has to be intersect with the vertical axis or vice versa.

Defaults to null

crossesInAxis

any

Specifies axis name with which the axis line has to be crossed.

Defaults to null

crosshairTooltip

any

Options to customize the crosshair ToolTip.

description

any

Description for axis and its element.

Defaults to null

desiredIntervals

any

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

Defaults to null

edgeLabelPlacement

any

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.

Defaults to ‘None’

enableAutoIntervalOnZooming

any

If set to true, axis interval will be calculated automatically with respect to the zoomed range.

Defaults to true

enableScrollbarOnZooming

any

Enables the scrollbar for zooming.

Defaults to true

enableTrim

any

If set to true, axis labels will be trimmed based on the maximumLabelWidth.

Defaults to false

interval

any

Specifies the interval for an axis.

Defaults to null

intervalType

any

Specifies the interval types for the date-time axis, including Auto, Years, Months, Days, Hours, and Minutes. These types define the interval of the axis as follows:

  • 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.

Defaults to ‘Auto’

isIndexed

any

If set to true, data points are rendered based on the index.

Defaults to false

isInversed

any

If set to true, the axis will be rendered in an inversed manner.

Defaults to false

labelFormat

any

Used to format the axis label, which accepts any global string format like ‘C’, ‘n1’, ‘P’, etc. It also accepts placeholders like ‘{value}°C’ where ‘value’ represents the axis label (e.g., 20°C).

Defaults to

labelIntersectAction

any

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.

Defaults to Trim

labelPadding

any

Specifies the padding for the axis labels from axis.

Defaults to 5

labelPlacement

any

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.

Defaults to ‘BetweenTicks’

labelPosition

any

Specifies the placement of a labels to the axis line. They are,

  • inside: Renders the labels inside to the axis line.
  • outside: Renders the labels outside to the axis line.

Defaults to ‘Outside’

labelRotation

any

The angle to which the axis label gets rotated.

Defaults to 0

labelStyle

any

Options to customize the axis label.

lineBreakAlignment

any

It specifies alignment of the line break labels.

Defaults to ‘Center’

lineStyle

any

Options for customizing axis lines.

logBase

any

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

Defaults to 10

majorGridLines

any

Options for customizing major grid lines.

majorTickLines

any

Options for customizing major tick lines.

maximum

any

Specifies the maximum range of an axis.

Defaults to null

maximumLabelWidth

any

Specifies the maximum width of an axis label.

Defaults to 34.

maximumLabels

any

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

Defaults to 3

minimum

any

Specifies the minimum range of an axis.

Defaults to null

minorGridLines

any

Options for customizing minor grid lines.

minorTickLines

any

Options for customizing minor tick lines.

minorTicksPerInterval

any

Specifies the number of minor ticks per interval.

Defaults to 0

multiLevelLabels

any

Specifies the multi level labels collection for the axis.

name

any

A unique identifier for an axis. To associate an axis with a series, set this name to the xAxisName/yAxisName properties of the series.

Defaults to

opposedPosition

any

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

Defaults to false

placeNextToAxisLine

any

Specifies whether axis elements like axis labels, axis title, etc has to be crossed with axis line.

Defaults to true

plotOffset

any

Left and right padding for the plot area in pixels.

Defaults to 0

plotOffsetBottom

any

Bottom padding for the plot area in pixels.

Defaults to null

plotOffsetLeft

any

Left padding for the plot area in pixels.

Defaults to null

plotOffsetRight

any

Right padding for the plot area in pixels.

Defaults to null

plotOffsetTop

any

Top padding for the plot area in pixels.

Defaults to null

rangePadding

any

Specifies the padding for the axis range in terms of interval. Available options 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.

Defaults to ‘Auto’

rowIndex

any

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

Defaults to 0

scrollbarSettings

any

Option to customize scrollbar with lazy loading.

skeleton

any

Specifies the skeleton format in which the dateTime will be processed.

Defaults to

skeletonType

any

Specifies the format type to be used in dateTime formatting.

Defaults to ‘DateTime’

span

any

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

Defaults to 1

startAngle

any

The start angle for the series.

Defaults to 0

startFromZero

any

It specifies whether the axis to be start from zero.

Defaults to true

stripLines

any

Specifies the stripLine collection for the axis.

tabIndex

any

TabIndex value for the axis.

Defaults to 2

tickPosition

any

Specifies the placement of a ticks to the axis line. They are,

  • inside: Renders the ticks inside to the axis line.
  • outside: Renders the ticks outside to the axis line.

Defaults to ‘Outside’

title

any

Specifies the title of an axis.

Defaults to

titlePadding

any

Specifies the titlePadding from axis label.

Defaults to 5

titleRotation

any

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

Defaults to null

titleStyle

any

Options for customizing the axis title.

valueType

any

Specifies the data types that the axis can handle. Available options include:

  • Double: Used for rendering a numeric axis to accommodate numeric data.
  • DateTime: Utilized for rendering a date-time axis to manage date-time data.
  • Category: Employed for rendering a category axis to manage categorical data.
  • Logarithmic: Applied for rendering a logarithmic axis to handle a wide range of values.
  • DateTimeCategory: Used to render a date time category axis for managing business days.

Defaults to ‘Double’

visible

any

If set to true, axis labels will be visible in the chart. By default, axis labels are enabled.

Defaults to true

zoomFactor

any

The axis is scaled by this factor. When zoomFactor is 0.5, the chart is scaled by 200% along this axis. Value ranges from 0 to 1.

Defaults to 1

zoomPosition

any

Position of the zoomed axis. Value ranges from 0 to 1.

Defaults to 0