public class SparklineChartOptions extends SimpleAxisChartOptions
Constructor and Description |
---|
SparklineChartOptions() |
Modifier and Type | Method and Description |
---|---|
void |
setFillAreaOpacity(double opacity)
A number between
0 and 1 representing the opacity of the area between a line and the x axis. |
void |
setLineWidth(double lineWidth)
The line width in pixels.
|
void |
setPointRadius(double radius)
The radius of points.
|
void |
showLines(boolean show)
Specifies whether or not to show lines.
|
void |
showPoints(boolean show)
Determines whether or not to show points.
|
void |
useSteps(boolean use)
Determines whether or not to use steps.
|
setDateFormat, setNumberFormat, setRotateTickXAxis, showAxisLabels
setColors, setLegendPosition, setNumberOfColumnsInTheLegend, showGrid, showLegend, showTooltip
public void showLines(boolean show)
Note: Setting both showLines(boolean)
and showPoints(boolean)
to false will results in an invisible
chart.
Default value: true
.
public void useSteps(boolean use)
When using steps, points are not connected using a direct line.
Instead, horizontal and vertical lines are used to connect two points.
Default value: false
.
public void setFillAreaOpacity(double opacity)
0
and 1
representing the opacity of the area between a line and the x axis.
A value of 0
represents a completely transparent area.
A value of 1
represents a completely opaque area.
Note: For this option to function showLines(boolean)
must be set to true
.
Default value: 0
.
public void setLineWidth(double lineWidth)
Note: Setting this to 0
will make the lines invisible.
It is recommended to set showLines(boolean)
to false
instead.
Default value: 2
.
public void showPoints(boolean show)
Note: Setting both showPoints(boolean)
and showLines(boolean)
to false
will result in an invisible
chart.
Default value: true
.
public void setPointRadius(double radius)
Default value: 3
.