Class AreaSeries
- java.lang.Object
-
- com.cloudofficeprint.RenderElements.Charts.Series.XYSeries
-
- com.cloudofficeprint.RenderElements.Charts.Series.AreaSeries
-
public class AreaSeries extends XYSeries
This class represents series for an area chart.
-
-
Constructor Summary
Constructors Constructor Description AreaSeries(java.lang.String name, java.lang.String[] x, java.lang.String[] y, java.lang.String color, java.lang.Float opacity)
This object represents series for a pie chart.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getColor()
com.google.gson.JsonObject
getJSON()
java.lang.Float
getOpacity()
Note: Decimal value between 0 and 1.void
setColor(java.lang.String color)
void
setOpacity(java.lang.Float opacity)
Note: Decimal value between 0 and 1.
-
-
-
Constructor Detail
-
AreaSeries
public AreaSeries(java.lang.String name, java.lang.String[] x, java.lang.String[] y, java.lang.String color, java.lang.Float opacity)
This object represents series for a pie chart.- Parameters:
name
- Name of the chart.x
- X-data of the chart.y
- Y-data of the chart.color
- Color of the chart.opacity
- Opacity of the chart. Note: Decimal value between 0 and 1. It will only work when a color is manually specified, otherwise it is silently ignored. The opacity can also be set by using a scheme for the color option which includes an alpha value in the color field (rgba, hsla and hwba are supported). The opacity field is also ignored in that case.
-
-
Method Detail
-
getOpacity
public java.lang.Float getOpacity()
Note: Decimal value between 0 and 1. It will only work when a color is manually specified, otherwise it is silently ignored. The opacity can also be set by using a scheme for the color option which includes an alpha value in the color field (rgba, hsla and hwba are supported). The opacity field is also ignored in that case.- Returns:
- Opacity of the chart.
-
setOpacity
public void setOpacity(java.lang.Float opacity)
Note: Decimal value between 0 and 1. It will only work when a color is manually specified, otherwise it is silently ignored. The opacity can also be set by using a scheme for the color option which includes an alpha value in the color field (rgba, hsla and hwba are supported). The opacity field is also ignored in that case.- Parameters:
opacity
- Opacity of the chart.
-
getColor
public java.lang.String getColor()
-
setColor
public void setColor(java.lang.String color)
-
-