com.vaadin.flow.component.charts.model.
Class NoData
- java.lang.Object
-
- com.vaadin.flow.component.charts.model.AbstractConfigurationObject
-
- com.vaadin.flow.component.charts.model.NoData
-
All Implemented Interfaces:
public class NoData extends AbstractConfigurationObject
Options for displaying a message like "No data to display". This feature requires the file
no-data-to-display.js
to be loaded in the page. The actual text to display is set in the lang.noData option.See Also:
-
-
Constructor Summary
Constructors Constructor Description NoData()
-
Method Summary
All Methods Modifier and Type Method Description Position
getPosition()
Style
getStyle()
Boolean
getUseHTML()
void
setPosition(Position position)
The position of the no-data label, relative to the plot area.
void
setStyle(Style style)
CSS styles for the no-data label.
void
setUseHTML(Boolean useHTML)
Whether to insert the label as HTML, or as pseudo-HTML rendered with SVG.
-
-
-
Method Detail
-
getPosition
public Position getPosition()
See Also:
-
setPosition
public void setPosition(Position position)
The position of the no-data label, relative to the plot area.
Defaults to: { "x": 0, "y": 0, "align": "center", "verticalAlign": "middle" }
-
getStyle
public Style getStyle()
See Also:
-
setStyle
public void setStyle(Style style)
CSS styles for the no-data label.
Defaults to: { "fontSize": "12px", "fontWeight": "bold", "color": "#666666" }
-
getUseHTML
public Boolean getUseHTML()
See Also:
-
setUseHTML
public void setUseHTML(Boolean useHTML)
Whether to insert the label as HTML, or as pseudo-HTML rendered with SVG.
Defaults to: false
-
-