GridLine
Gridlines can be configured from config()
api.
The configurations is as follows:
parameters:
- gridlines:
required: false
type: Object
description: Configuration of horizontal and vertical gridlines.
parameters:
- x:
required : false
type : Object
description: Configuration to show vertical grid lines.
parameters:
- show:
required: false
type: Boolean
default: false
description : If value is false, it will hide the x-gridlines.
- y:
required : false
type : Object
description: Configuration to show horizontal grid lines.
parameters:
- show:
required: false
type: Boolean
default: true
description : If value is false, it will hide the y-gridlines.
- color:
required: false
type: String
default: '#f3f3f3'
description : One can change the default gridline color.
- show:
required: false
type: Boolean
default: true
description: Shows or Hides all gridlines on the canvas.