Class GridLines
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetColor()
Color of the grid lines.setDisplay
(Boolean display) setDrawBorder
(Boolean drawBorder) If true draw border on the edge of the chartsetDrawOnChartArea
(Boolean drawOnChartArea) If true, draw lines on the chart area inside the axis lines.setDrawTicks
(Boolean drawTicks) If true, draw lines beside the ticks in the axis area beside the chart.setLineWidth
(List<Integer> lineWidth) Stroke width of grid linessetOffsetGridLines
(Boolean offsetGridLines) If true, labels are shifted to be between grid lines.setTickMarkLength
(Integer tickMarkLength) Length in pixels that the grid lines will draw into the axis area.setZeroLineColor
(Color zeroLineColor) Stroke color of the grid line for the first index (index 0).setZeroLineWidth
(Integer zeroLineWidth) Stroke width of the grid line for the first index (index 0).
-
Field Details
-
color
-
lineWidth
-
display
-
drawBorder
-
drawOnChartArea
-
drawTicks
-
tickMarkLength
-
zeroLineWidth
-
zeroLineColor
-
offsetGridLines
-
-
Constructor Details
-
GridLines
public GridLines()
-
-
Method Details
-
getDisplay
- See Also:
-
setDisplay
Default
true
-
getColor
- See Also:
-
setColor
Color of the grid lines.
Default
"rgba(0, 0, 0, 0.1)"
-
addColor
- See Also:
-
getLineWidth
- See Also:
-
setLineWidth
Stroke width of grid lines
Default
1
-
addColor
- See Also:
-
getDrawBorder
- See Also:
-
setDrawBorder
If true draw border on the edge of the chart
Default
true
-
getDrawOnChartArea
- See Also:
-
setDrawOnChartArea
If true, draw lines on the chart area inside the axis lines. This is useful when there are multiple axes and you need to control which grid lines are drawn
Default
true
-
getDrawTicks
- See Also:
-
setDrawTicks
If true, draw lines beside the ticks in the axis area beside the chart.
Default
true
-
getTickMarkLength
- See Also:
-
setTickMarkLength
Length in pixels that the grid lines will draw into the axis area.
Default
10
-
getZeroLineWidth
- See Also:
-
setZeroLineWidth
Stroke width of the grid line for the first index (index 0).
Default
1
-
getZeroLineColor
- See Also:
-
setZeroLineColor
Stroke color of the grid line for the first index (index 0).
Default
"rgba(0, 0, 0, 0.25)"
-
getOffsetGridLines
- See Also:
-
setOffsetGridLines
If true, labels are shifted to be between grid lines. This is used in the bar chart.
Default
false
-