Class HeatSeries
- java.lang.Object
-
- com.vaadin.flow.component.charts.model.AbstractConfigurationObject
-
- com.vaadin.flow.component.charts.model.AbstractSeries
-
- com.vaadin.flow.component.charts.model.HeatSeries
-
- All Implemented Interfaces:
Series,Serializable
public class HeatSeries extends AbstractSeries
A specialized series for use with HeatMaps- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HeatSeries()HeatSeries(String name)Constructs a HeatSeries with the given nameHeatSeries(String name, Number[]... values)Constructs a HeatSeries with the given name and values
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddHeatPoint(int x, int y, Number heatScore)Add a single data point to the heat seriesvoidclear()Number[][]getData()voidsetData(Number[]... values)Sets the numeric data for this series.-
Methods inherited from class com.vaadin.flow.component.charts.model.AbstractSeries
getColorAxis, getConfiguration, getId, getName, getPlotOptions, getStack, getxAxis, getyAxis, isVisible, setColorAxis, setConfiguration, setId, setName, setPlotOptions, setStack, setVisible, setVisible, setxAxis, setyAxis, setyAxis, updateSeries
-
-
-
-
Constructor Detail
-
HeatSeries
public HeatSeries()
-
HeatSeries
public HeatSeries(String name)
Constructs a HeatSeries with the given name- Parameters:
name- The name of this data series.
-
-
Method Detail
-
setData
public void setData(Number[]... values)
Sets the numeric data for this series.- Parameters:
values- x-y-heatScore triplets
-
getData
public Number[][] getData()
- Returns:
- the raw data in this series
- See Also:
setData(Number[]...)
-
addHeatPoint
public void addHeatPoint(int x, int y, Number heatScore)Add a single data point to the heat series- Parameters:
x- the x coordinate of the pointy- the y coordinate of the pointheatScore- the heat score of the point
-
clear
public void clear()
-
-