class XAxisLabels extends Object
- Annotations
- @RawJSType() @ScalaJSDefined()
- Note
JavaScript name:
xAxis-labels
- Alphabetic
- By Inheritance
- XAxisLabels
- Object
- Any
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new XAxisLabels()
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
val
align: UndefOr[String]
What part of the string the given position is anchored to.
What part of the string the given position is anchored to. If
left
, the left side of the string is at the axis position. Can be one of"left"
,"center"
or"right"
. Defaults to an intelligent guess based on which side of the chart the axis is on and the rotation of the label.Align left and, right on X axis. Understand alignment to boxes, lines and points
Example: -
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
val
autoRotation: UndefOr[Array[Double]]
For horizontal axes, the allowed degrees of label rotation to prevent overlapping labels.
For horizontal axes, the allowed degrees of label rotation to prevent overlapping labels. If there is enough space, labels are not rotated. As the chart gets narrower, it will start rotating the labels -45 degrees, then remove every second label and try again with rotations 0 and -45 etc. Set it to
false
to disable rotation, which will cause the labels to word-wrap if possible.- Since
4.1.0
-
val
autoRotationLimit: UndefOr[Double]
When each category width is more than this many pixels, we don't apply auto rotation.
When each category width is more than this many pixels, we don't apply auto rotation. Instead, we lay out the axis label with word wrap. A lower limit makes sense when the label contains multiple short words that don't extend the available horizontal space for each label.
- Since
4.1.5
Example: -
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
val
distance: UndefOr[Double]
Polar charts only.
Polar charts only. The label's pixel distance from the perimeter of the plot area.
-
val
enabled: UndefOr[Boolean]
Enable or disable the axis labels.
Enable or disable the axis labels.
Example: -
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
val
format: UndefOr[String]
A format string for the axis label.
A format string for the axis label.
- Since
3.0
Example: -
val
formatter: UndefOr[Function]
Callback JavaScript function to format the label.
Callback JavaScript function to format the label. The value is given by
this.value
. Additional properties forthis
areaxis
,chart
,isFirst
andisLast
. The value of the default label formatter can be retrieved by callingthis.axis.defaultLabelFormatter.call(this)
within the function.Defaults to:
function() { return this.value; }
Example: -
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hasOwnProperty(v: String): Boolean
- Definition Classes
- Object
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isPrototypeOf(v: Object): Boolean
- Definition Classes
- Object
-
val
maxStaggerLines: UndefOr[Double]
Horizontal axis only.
Horizontal axis only. When
staggerLines
is not set,maxStaggerLines
defines how many lines the axis is allowed to add to automatically avoid overlapping X labels. Set to1
to disable overlap detection.- Since
3.0.3
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
val
overflow: UndefOr[String]
How to handle overflowing labels on horizontal axis.
How to handle overflowing labels on horizontal axis. Can be undefined,
false
or"justify"
. By default it aligns inside the chart area. If "justify", labels will not render outside the plot area. Iffalse
, it will not be aligned at all. If there is room to move it, it will be aligned to the edge, else it will be removed.- Since
2.2.5
-
val
padding: UndefOr[Double]
The pixel padding for axis labels, to ensure white space between them.
-
def
propertyIsEnumerable(v: String): Boolean
- Definition Classes
- Object
-
val
reserveSpace: UndefOr[Boolean]
Whether to reserve space for the labels.
Whether to reserve space for the labels. This can be turned off when for example the labels are rendered inside the plot area instead of outside.
- Since
4.1.10
Example: -
val
rotation: UndefOr[Double]
Rotation of the labels in degrees.
Rotation of the labels in degrees.
Example: -
val
staggerLines: UndefOr[Double]
Horizontal axes only.
Horizontal axes only. The number of lines to spread the labels over to make room or tighter labels. .
- Since
2.1
Example: -
val
step: UndefOr[Double]
To show only every n'th label on the axis, set the step to n.
To show only every n'th label on the axis, set the step to n. Setting the step to 2 shows every other label.
By default, the step is calculated automatically to avoid overlap. To prevent this, set it to 1. This usually only happens on a category axis, and is often a sign that you have chosen the wrong axis type. Read more at Axis docs => What axis should I use?
-
val
style: UndefOr[Object]
CSS styles for the label.
CSS styles for the label. Use
whiteSpace: 'nowrap'
to prevent wrapping of category labels. UsetextOverflow: 'none'
to prevent ellipsis (dots).In styled mode, the labels are styled with the
.highcharts-axis-labels
class.Example: -
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toLocaleString(): String
- Definition Classes
- Object
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
val
useHTML: UndefOr[Boolean]
Whether to use HTML to render the labels.
Whether to use HTML to render the labels.
-
def
valueOf(): Any
- Definition Classes
- Object
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
val
x: UndefOr[Double]
The x position offset of the label relative to the tick position on the axis.
The x position offset of the label relative to the tick position on the axis.
Example: -
val
y: UndefOr[Double]
The y position offset of the label relative to the tick position on the axis.
The y position offset of the label relative to the tick position on the axis. The default makes it adapt to the font size on bottom axis.
Example: -
val
zIndex: UndefOr[Double]
The Z index for the axis labels.