public class GridLines extends Object
Constructor and Description |
---|
GridLines() |
Modifier and Type | Method and Description |
---|---|
GridLines |
addColor(Color color) |
GridLines |
addColor(Integer lineWidth) |
List<Color> |
getColor() |
Boolean |
getDisplay() |
Boolean |
getDrawBorder() |
Boolean |
getDrawOnChartArea() |
Boolean |
getDrawTicks() |
List<Integer> |
getLineWidth() |
Boolean |
getOffsetGridLines() |
Integer |
getTickMarkLength() |
Color |
getZeroLineColor() |
Integer |
getZeroLineWidth() |
GridLines |
setColor(List<Color> color)
Color of the grid lines.
|
GridLines |
setDisplay(Boolean display) |
GridLines |
setDrawBorder(Boolean drawBorder)
If true draw border on the edge of the chart
|
GridLines |
setDrawOnChartArea(Boolean drawOnChartArea)
If true, draw lines on the chart area inside the axis lines.
|
GridLines |
setDrawTicks(Boolean drawTicks)
If true, draw lines beside the ticks in the axis area beside the chart.
|
GridLines |
setLineWidth(List<Integer> lineWidth)
Stroke width of grid lines
|
GridLines |
setOffsetGridLines(Boolean offsetGridLines)
If true, labels are shifted to be between grid lines.
|
GridLines |
setTickMarkLength(Integer tickMarkLength)
Length in pixels that the grid lines will draw into the axis area.
|
GridLines |
setZeroLineColor(Color zeroLineColor)
Stroke color of the grid line for the first index (index 0).
|
GridLines |
setZeroLineWidth(Integer zeroLineWidth)
Stroke width of the grid line for the first index (index 0).
|
public Boolean getDisplay()
setDisplay(Boolean)
public List<Color> getColor()
setColor(List)
public GridLines addColor(Color color)
setColor(List)
public GridLines setColor(List<Color> color)
Color of the grid lines.
Default "rgba(0, 0, 0, 0.1)"
public List<Integer> getLineWidth()
setLineWidth(List)
public GridLines addColor(Integer lineWidth)
setLineWidth(List)
public GridLines setLineWidth(List<Integer> lineWidth)
Stroke width of grid lines
Default 1
public Boolean getDrawBorder()
setDrawBorder(Boolean)
public GridLines setDrawBorder(Boolean drawBorder)
If true draw border on the edge of the chart
Default true
public Boolean getDrawOnChartArea()
setDrawOnChartArea(Boolean)
public GridLines setDrawOnChartArea(Boolean drawOnChartArea)
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
public Boolean getDrawTicks()
setDrawTicks(Boolean)
public GridLines setDrawTicks(Boolean drawTicks)
If true, draw lines beside the ticks in the axis area beside the chart.
Default true
public Integer getTickMarkLength()
setTickMarkLength(Integer)
public GridLines setTickMarkLength(Integer tickMarkLength)
Length in pixels that the grid lines will draw into the axis area.
Default 10
public Integer getZeroLineWidth()
setZeroLineWidth(Integer)
public GridLines setZeroLineWidth(Integer zeroLineWidth)
Stroke width of the grid line for the first index (index 0).
Default 1
public Color getZeroLineColor()
setZeroLineColor(Color)
public GridLines setZeroLineColor(Color zeroLineColor)
Stroke color of the grid line for the first index (index 0).
Default "rgba(0, 0, 0, 0.25)"
public Boolean getOffsetGridLines()
setOffsetGridLines(Boolean)
Copyright © 2017. All rights reserved.