class PlotOptionsAreaDataLabels extends Object
- Annotations
- @RawJSType() @ScalaJSDefined()
- Note
JavaScript name:
plotOptions-area-dataLabels
- Alphabetic
- By Inheritance
- PlotOptionsAreaDataLabels
- Object
- Any
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new PlotOptionsAreaDataLabels()
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]
The alignment of the data label compared to the point.
The alignment of the data label compared to the point. If
right
, the right side of the label should be touching the point. For points with an extent, like columns, the alignments also dictates how to align it inside the box, as given with the inside option. Can be one of "left", "center" or "right". -
val
allowOverlap: UndefOr[Boolean]
Whether to allow data labels to overlap.
Whether to allow data labels to overlap. To make the labels less sensitive for overlapping, the dataLabels.padding can be set to 0.
- Since
2.1.0
Example: -
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
val
borderColor: UndefOr[|[String, Object]]
The border color for the data label.
The border color for the data label. Defaults to
undefined
.- Since
1.1.6
Example: -
val
borderRadius: UndefOr[Double]
The border radius in pixels for the data label.
The border radius in pixels for the data label.
- Since
1.1.6
Example: -
val
borderWidth: UndefOr[Double]
The border width in pixels for the data label.
The border width in pixels for the data label.
- Since
1.1.6
Example: -
val
className: UndefOr[String]
A class name for the data label.
A class name for the data label. Particularly in styled mode, this can be used to give each series' or point's data label unique styling. In addition to this option, a default color class name is added so that we can give the labels a contrast text shadow.
- Since
5.0.0
Example: -
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
val
color: UndefOr[|[String, Object]]
The text color for the data labels.
The text color for the data labels. Defaults to
null
. -
val
crop: UndefOr[Boolean]
Whether to hide data labels that are outside the plot area.
Whether to hide data labels that are outside the plot area. By default, the data label is moved inside the plot area according to the overflow option.
- Since
2.3.3
-
val
defer: UndefOr[Boolean]
Whether to defer displaying the data labels until the initial series animation has finished.
Whether to defer displaying the data labels until the initial series animation has finished.
- Since
4.0
-
val
enabled: UndefOr[Boolean]
Enable or disable the data labels.
-
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 data label.
A format string for the data label. Available variables are the same as for
formatter
.- Since
1.3
Example: -
val
formatter: UndefOr[Function]
Callback JavaScript function to format the data label.
Callback JavaScript function to format the data label. Note that if a
format
is defined, the format takes precedence and the formatter is ignored. Available data are:this.percentage
Stacked series and pies only. The point's percentage of the total. this.point
The point object. The point name, if defined, is available through this.point.name
.this.series
:The series object. The series name is available through this.series.name
.this.total
Stacked series only. The total value at this point's x value. this.x
:The x value. this.y
:The y value. -
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hasOwnProperty(v: String): Boolean
- Definition Classes
- Object
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
val
inside: UndefOr[Boolean]
For points with an extent, like columns, whether to align the data label inside the box or to the actual value point.
For points with an extent, like columns, whether to align the data label inside the box or to the actual value point. Defaults to
false
in most cases,true
in stacked columns.- Since
1.3
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isPrototypeOf(v: Object): Boolean
- Definition Classes
- Object
-
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 data labels that flow outside the plot area.
How to handle data labels that flow outside the plot area. The default is
justify
, which aligns them inside the plot area. For columns and bars, this means it will be moved inside the bar. To display data labels outside the plot area, setcrop
tofalse
andoverflow
to"none"
.- Since
1.3.6
-
val
padding: UndefOr[Double]
When either the
borderWidth
or thebackgroundColor
is set, this is the padding within the box.When either the
borderWidth
or thebackgroundColor
is set, this is the padding within the box.- Since
1.1.6
Example: -
def
propertyIsEnumerable(v: String): Boolean
- Definition Classes
- Object
-
val
rotation: UndefOr[Double]
Text rotation in degrees.
Text rotation in degrees. Note that due to a more complex structure, backgrounds, borders and padding will be lost on a rotated data label.
-
val
shadow: UndefOr[|[Boolean, Object]]
The shadow of the box.
The shadow of the box. Works best with
borderWidth
orbackgroundColor
. Since 1.1.7 the shadow can be an object configuration containingcolor
,offsetX
,offsetY
,opacity
andwidth
.- Since
1.1.6
Example: -
val
shape: UndefOr[String]
The name of a symbol to use for the border around the label.
The name of a symbol to use for the border around the label. Symbols are predefined functions on the Renderer object.
- Since
2.1.2
Example: -
val
style: UndefOr[Object]
Styles for the label.
-
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
-
val
verticalAlign: UndefOr[String]
The vertical alignment of a data label.
The vertical alignment of a data label. Can be one of
top
,middle
orbottom
. The default value depends on the data, for instance in a column chart, the label is above positive values and below negative values.- Since
1.1
-
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 point.
-
val
y: UndefOr[Double]
The y position offset of the label relative to the point.
-
val
zIndex: UndefOr[Double]
The Z index of the data labels.
The Z index of the data labels. The default Z index puts it above the series. Use a Z index of 2 to display it behind the series.
- Since
1.2.5