Class LineChartOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setFillAreaOpacity
(double opacity) A number between0
and1
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
setStack
(boolean stack) Determines whether or not to stack lines.
When stacked, points for the same X value are stacked on top of each other.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.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
-
Constructor Details
-
LineChartOptions
public LineChartOptions()
-
-
Method Details
-
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 between0
and1
representing the opacity of the area between a line and the x axis.A value of
0
represents a completely transparent area.
A value of1
represents 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
0
will make the lines invisible.
It is recommended to setshowLines(boolean)
tofalse
instead.
Default value:2
. -
showPoints
public void showPoints(boolean show) Determines whether or not to show points.Note: Setting both
showPoints(boolean)
andshowLines(boolean)
tofalse
will result in an invisible chart.
Default value:true
. -
setPointRadius
public void setPointRadius(double radius) The radius of points.Default value:
2
. -
setStack
public void setStack(boolean stack) Determines whether or not to stack lines.
When stacked, points for the same X value are stacked on top of each other.Note: When points are stacked their value on the y axis is relative to the line below.
Warning: This option must be used only with an ordinate of numerical type. This option will not function correctly when set to true and used on an ordinate of type date or boolean.
Warning: Exactly the same abscissa values must be present on all lines for this option to function correctly. When set to true, the points must be sorted by the abscissa in ascending order for this option to function correctly.
If not stacked the points and the lines they form may intersect.
This option is most useful with filled lines.
Default value:false
.
-