From 4818e44f373f97f90eea6751d793629201619229 Mon Sep 17 00:00:00 2001 From: Jae Sung Park Date: Thu, 4 Aug 2022 12:23:09 +0900 Subject: [PATCH] fix(grid): Remove grid.y.ticks default value Remove default value, which makes counter intuitive when is used along with grid.y.show=true is set. Fix #2809 --- src/config/Options/common/grid.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config/Options/common/grid.ts b/src/config/Options/common/grid.ts index c4e9c651b..15dee4ef2 100644 --- a/src/config/Options/common/grid.ts +++ b/src/config/Options/common/grid.ts @@ -23,7 +23,7 @@ export default { * @property {boolean} [y.show=false] Show grids along x axis. * @property {Array} [y.lines=[]] Show additional grid lines along y axis.
* This option accepts array including object that has value, text, position and class. - * @property {number} [y.ticks=10] Number of y grids to be shown. + * @property {number} [y.ticks=undefined] Number of y grids to be shown. * @property {object} focus Grid focus object * @property {boolean} [focus.edge=false] Show edged focus grid line.
**NOTE:** Available when [`tooltip.grouped=false`](#.tooltip) option is set. * @property {boolean} [focus.show=true] Show grid line when focus. @@ -71,7 +71,7 @@ export default { grid_x_lines: [], grid_y_show: false, grid_y_lines: [], - grid_y_ticks: 10, + grid_y_ticks: undefined, grid_focus_edge: false, grid_focus_show: true, grid_focus_y: false,