Class Dataset
- java.lang.Object
-
- com.trivago.cluecumber.engine.rendering.pages.charts.pojos.Dataset
-
public class Dataset extends Object
The class to hold chart data.
-
-
Constructor Summary
Constructors Constructor Description Dataset()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>getBackgroundColor()Get the background colors for each data point.List<Float>getData()Get the values of this dataset.StringgetLabel()Get the label of this dataset.StringgetStack()Get the current stack.voidsetBackgroundColor(List<String> backgroundColor)Set the background colors for each data point.voidsetData(List<Float> data)Set the values of this dataset.voidsetLabel(String label)Set the label of this dataset.voidsetStack(String stack)Set the current stack.
-
-
-
Method Detail
-
setData
public void setData(List<Float> data)
Set the values of this dataset.- Parameters:
data- The value list.
-
getBackgroundColor
public List<String> getBackgroundColor()
Get the background colors for each data point.- Returns:
- The list of color strings.
-
setBackgroundColor
public void setBackgroundColor(List<String> backgroundColor)
Set the background colors for each data point.- Parameters:
backgroundColor- The list of color strings.
-
getLabel
public String getLabel()
Get the label of this dataset.- Returns:
- The label.
-
setLabel
public void setLabel(String label)
Set the label of this dataset.- Parameters:
label- The label.
-
getStack
public String getStack()
Get the current stack.- Returns:
- The stack string.
-
setStack
public void setStack(String stack)
Set the current stack.- Parameters:
stack- The stack string.
-
-