Initializing help system before first use

vdl-chart-axis

Use a vdl-chart-axis tag to configure each axis on the chart.

since 4.8

Required parent element

Must be contained within one of the following elements:

Example

<vdl-chart title="Factory Supply vs Demand">
	<vdl-chart-axis axis="x" title="Factory"></vdl-chart-axis>
	...
</vdl-chart>

Attributes

axis Specify the axis to configure. Accepts one of: "x", "y", "y2". y2 will create an axis on the right-side of the chart. since 4.8 required
color Color for the axis title and ticks, defaults to black. This is useful when configuring the y2 axis on the right-side of the chart. Can be any valid CSS color string. since 4.8
label-autorotate By default the axis labels could be rotated automatically by the chart component, if that fits the text better. The labels could remain horizontal or could be rotated 45º or 90º depending on the space available and length of the labels. Setting this attribute to "false" will force the labels on the x-axis to always be displayed horizontally. Accepts "true" or "false". This attribute is only allowed on the x-axis. since 5.3
margin-autosize This will cause the x-axis margin to resize to fit text and could also result in word-breaks being added to labels that are non-numerical so they better fit. It is useful for charts that are likely to have long text for the ticks. By default this is set to "false" and text may be truncated. Accepts "true" or "false". This attribute is only allowed on the x-axis. since 5.3
margin-size The size of this margin in pixels. since 4.8 accepts expression
max Specify a maximum value (number) for this axis. Must be used in conjunction with "min" since 4.8 accepts expression
min Specify a minimum value (number) for this axis. Must be used in conjunction with "max" since 4.8 accepts expression
show-grid Show the grid lines on this axis. Accepts: "true", "false". Defaults to "false" since 4.8
step Specify the step in-between ticks on the axis since 4.8 accepts expression
suffix The suffix to add to labels on this axis since 4.8
title Title for the axis since 4.8 accepts expression
type Type for the axis. Defaults to "category" for x axis and autodetect for y axis. "-" means autodetect. Accepts: "-", "linear", "log", "date", "category" since 4.8

© 2001-2024 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.