Element Details: X-Axis
 Back


Available in: Logi Info Source code name: ChartXAxisIntroduced in: v11.2.040

The X-axis typically represents the data rows across the bottom of the chart. The X-Axis element allows control of axis labels, spacing, and colors.

A key attribute is Axis Type, which specifies the data type for the axis, such as "DateTime", "Numeric", or "Categorized", and scaling. When not set, Axis Type is automatically determined by examining the data values themselves.



ATTRIBUTES

Click attribute Name to drill down for more information.

NamePossible ValuesDescription
AxisCaption
UserDefined
The axis caption/title.
AxisLineColor
UserDefined
Sets the color of the line marking the axis itself. Enter a color by name, decimal RGB value, or hex RGB value. Prefix hex values with the pound sign, e.g. #D5F484.
AxisLineColorTransparency
UserDefined
7
15
0
The related Axis Line Color attribute sets the color of the axis line. Axis Line Color Transparency adds transparency to that color. The lowest value of “0” specifies that the axis line is opaque, with no transparency. At the other end of the scale, “15” specifies a completely transparent line. Use medium-level transparency to allow different chart layers to show through each other.
AxisLineThickness
UserDefined
Sets the thickness of the axis line, in pixels. The default value is 1 pixel.
AxisPaddingLeft
UserDefined
When the X-axis presents Numeric or DateTime data, sets the padding between the edge of the plot area and the first data value, as a percentage of the axis length. This is useful for preventing the first data value from appearing at the very edge of the plot area. Set to 0 to remove all padding. The value is percent of the chart width. The default value is 1 percent.
AxisPaddingRight
UserDefined
When the X-axis presents Numeric or DateTime data, sets the padding between the edge of the plot area and the first data value, as a percentage of the axis length. This is useful for preventing the first data value from appearing at the very edge of the plot area. Set to 0 to remove all padding. The value is percent of the chart width. The default value is 1 percent.
AxisSpacing
UserDefined
Sets the space between the edge of the chart plot area and the axis line, in pixels. The default is 0 pixels.
AxisType
NumericLogarithmic
NumericLinear
DateTimeLinear
Category
Sets the type of scale for the axis. This can be a "smooth" scale, consistent with a stream of numbers or dates/times. When working with the X-Axis element, it can also be “Category” (e.g. Apples, Oranges) which are often visualized using Bar and Pie charts. The default varies based on the axis column data type: Text = “Category”, Date/Time = “DateTimeLinear”, Numeric = “NumericLinear”
HideAxis
True
False
Hides the axis. The default value is "False".
HideFirstLabel
True
False
Hides the first tick mark label. The default value is "False".
HideLastLabel
True
False
Hides the last tick mark label. The default value is "False".
ID
UserDefined
The ID attribute is a pervasive attribute that uniquely identifies an element within a definition file. The ID needs to be a unique value within the definition.
OppositeSide
True
False
Specifies that the axis be displayed on the opposite side from its normal position: Left for vertical axes and Bottom for horizontal axes. The default value is "False".
OppositeSideAlignment
True
False
When there are two vertical or two horizontal axes, the appearance may be improved by aligning the tick marks with each other. Default value is "False".
ReverseAxis
True
False
Set to “True” to reverse the axis.
ScaleLowerBound
UserDefined
Sets the lower bound of the axis. Set this value to a number, or leave it blank for automatic scaling. When you have a lower bound, you must also specify an upper bound. The default value is automatic scaling.
ScaleUpperBound
UserDefined
Sets the upper bound of the axis. Set this value to a number, or leave it blank for automatic scaling. When you have an upper bound, you must also specify a lower bound. The default value is automatic scaling.



PARENT ELEMENTS

Click element to drill down for more information.

Chart Canvas


CHILD ELEMENTS

Click element to drill down for more information.

Caption Style
Label Style
Marker Band
Marker Line
Minor Ticks and Grid
Ticks and Grid


 Back to top