Class SparklineChartOptions
- java.lang.Object
-
- com.orchestranetworks.addon.dqid.chart.Options
-
- com.orchestranetworks.addon.dqid.chart.SimpleAxisChartOptions
-
- com.orchestranetworks.addon.dqid.chart.SparklineChartOptions
-
public class SparklineChartOptions extends SimpleAxisChartOptions
The options for a line chart.
-
-
Constructor Summary
Constructors Constructor Description SparklineChartOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetFillAreaOpacity(double opacity)A number between0and1representing the opacity of the area between a line and the x axis.voidsetLineWidth(double lineWidth)The line width in pixels.voidsetPointRadius(double radius)The radius of points.voidshowLines(boolean show)Specifies whether or not to show lines.voidshowPoints(boolean show)Determines whether or not to show points.voiduseSteps(boolean use)Determines whether or not to use steps.-
Methods inherited from class com.orchestranetworks.addon.dqid.chart.SimpleAxisChartOptions
setDateFormat, setNumberFormat, setRotateTickXAxis, showAxisLabels
-
Methods inherited from class com.orchestranetworks.addon.dqid.chart.Options
setColors, setLegendPosition, setNumberOfColumnsInTheLegend, showGrid, showLegend, showTooltip
-
-
-
-
Method Detail
-
showLines
public void showLines(boolean show)
Specifies whether or not to show lines.Note: Setting both
showLines(boolean)andshowPoints(boolean)to false will results in an invisible chart.
Default value:true.
-
useSteps
public void useSteps(boolean use)
Determines whether or not to use steps.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.
-
setFillAreaOpacity
public void setFillAreaOpacity(double opacity)
A number between0and1representing the opacity of the area between a line and the x axis.A value of
0represents a completely transparent area.
A value of1represents a completely opaque area.
Note: For this option to functionshowLines(boolean)must be set totrue.
Default value:0.
-
setLineWidth
public void setLineWidth(double lineWidth)
The line width in pixels.Note: Setting this to
0will make the lines invisible.
It is recommended to setshowLines(boolean)tofalseinstead.
Default value:2.
-
showPoints
public void showPoints(boolean show)
Determines whether or not to show points.Note: Setting both
showPoints(boolean)andshowLines(boolean)tofalsewill result in an invisible chart.
Default value:true.
-
setPointRadius
public void setPointRadius(double radius)
The radius of points.Default value:
3.
-
-