ico
ico copied to clipboard
Option for drawing gridlines on single axis only
Hi, I needed to be able to draw grid lines parallel to the x-axis alone, for a project I'm working on so I added an option 'grid_axis' to enable me to specify which grid lines to draw. Usage:
grid_lines: {x: true, y: false} //This will cause grid to be drawn only parallel to x-axis.
By default both grid_axis.x and grid_axis.y are set to true, so as not to deviate from existing default behaviour.
Hi sleepy samurai,
Thanks for your interest in this Ico fork.
I will soon implement this slightly differently, updating the grid option which is only a Boolean for now but will become an object. I also plan on using this opportunity to allow to provide grid attributes with this new grid object and make grid a first-class Ico.Component.
I will let you know by updating this issue.
Regards, Jean.