@Generated(value="This class is generated and shouldn\'t be modified", comments="Incorrect and missing API should be reported to https://github.com/vaadin/vaadin-charts-flow/issues/new") public class StackLabels extends AbstractConfigurationObject
Constructor and Description |
---|
StackLabels() |
StackLabels(Boolean enabled) |
Modifier and Type | Method and Description |
---|---|
HorizontalAlign |
getAlign() |
Boolean |
getEnabled() |
String |
getFormat() |
String |
getFormatter() |
Number |
getRotation() |
String |
getTextAlign() |
Boolean |
getUseHTML() |
VerticalAlign |
getVerticalAlign() |
Number |
getX() |
Number |
getY() |
void |
setAlign(HorizontalAlign align)
Defines the horizontal alignment of the stack total label.
|
void |
setEnabled(Boolean enabled)
Enable or disable the stack total labels.
|
void |
setFormat(String format)
A format string for
the data label.
|
void |
setFormatter(String _fn_formatter) |
void |
setRotation(Number rotation)
Rotation of the labels in degrees.
|
void |
setTextAlign(String textAlign)
The text alignment for the label.
|
void |
setUseHTML(Boolean useHTML)
Whether to use
HTML to render the labels.
|
void |
setVerticalAlign(VerticalAlign verticalAlign)
Defines the vertical alignment of the stack total label.
|
void |
setX(Number x)
The x position offset of the label relative to the left of the stacked
bar.
|
void |
setY(Number y)
The y position offset of the label relative to the tick position on the
axis.
|
public StackLabels()
public StackLabels(Boolean enabled)
public HorizontalAlign getAlign()
setAlign(HorizontalAlign)
public void setAlign(HorizontalAlign align)
"left"
, "center"
or "right"
. The
default value is calculated at runtime and depends on orientation and
whether the stack is positive or negative.public Boolean getEnabled()
setEnabled(Boolean)
public void setEnabled(Boolean enabled)
Defaults to: false
public String getFormat()
setFormat(String)
public void setFormat(String format)
formatter
.
Defaults to: {total}
public String getFormatter()
public void setFormatter(String _fn_formatter)
public Number getRotation()
setRotation(Number)
public void setRotation(Number rotation)
Defaults to: 0
public String getTextAlign()
setTextAlign(String)
public void setTextAlign(String textAlign)
align
determines
where the texts anchor point is placed with regards to the stack,
textAlign
determines how the text is aligned against its
anchor point. Possible values are "left"
,
"center"
and "right"
. The default value is
calculated at runtime and depends on orientation and whether the stack is
positive or negative.public Boolean getUseHTML()
setUseHTML(Boolean)
public void setUseHTML(Boolean useHTML)
Defaults to: false
public VerticalAlign getVerticalAlign()
setVerticalAlign(VerticalAlign)
public void setVerticalAlign(VerticalAlign verticalAlign)
"top"
, "middle"
or "bottom"
. The
default value is calculated at runtime and depends on orientation and
whether the stack is positive or negative.public Number getX()
setX(Number)
public void setX(Number x)
public Number getY()
setY(Number)
public void setY(Number y)
Copyright © 2020. All rights reserved.