Class AxisGrid
java.lang.Object
com.vaadin.flow.component.charts.model.AbstractConfigurationObject
com.vaadin.flow.component.charts.model.AxisGrid
- All Implemented Interfaces:
Serializable
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Add a new column to the grid.void
setBorderColor
(Color borderColor) Set border color for the label grid lines.void
setBorderWidth
(Number borderWidth) Set border width of the label grid lines.void
setCellHeight
(Number cellHeight) Set cell height for grid axis labels.void
setColumns
(List<XAxis> columns) Set specific options for each column (or row for horizontal axes) in the grid.void
setEnabled
(Boolean enabled) Enable grid on the axis labels.
-
Constructor Details
-
AxisGrid
public AxisGrid()
-
-
Method Details
-
getBorderColor
- See Also:
-
setBorderColor
Set border color for the label grid lines. Defaults to undefined. -
getBorderWidth
- See Also:
-
setBorderWidth
Set border width of the label grid lines. Defaults to 1. -
getCellHeight
- See Also:
-
setCellHeight
Set cell height for grid axis labels. By default this is calculated from font size. This option only applies to horizontal axes. Defaults to undefined. -
getColumns
- See Also:
-
setColumns
Set specific options for each column (or row for horizontal axes) in the grid. Each extra column/row is its own axis, and the axis options can be set here. Defaults to undefined. -
addColumn
Add a new column to the grid. SeesetColumns(List)
- Parameters:
column
- A column to be added
-
getEnabled
- See Also:
-
setEnabled
Enable grid on the axis labels. Defaults to true for Gantt charts. Defaults to true.
-