diff --git a/src/component/axis/CartesianAxisView.ts b/src/component/axis/CartesianAxisView.ts index 3cc48e3041..abc3e8cff7 100644 --- a/src/component/axis/CartesianAxisView.ts +++ b/src/component/axis/CartesianAxisView.ts @@ -123,6 +123,8 @@ const axisElementBuilders: Record boolean) + interval?: 'auto' | number | ((index:number, value: string) => boolean), + // true | false + showMinLine?: boolean, + // true | false + showMaxLine?: boolean, // colors will display in turn lineStyle?: LineStyleOption } diff --git a/src/coord/axisDefault.ts b/src/coord/axisDefault.ts index 4d2c6674b3..ae589f365a 100644 --- a/src/coord/axisDefault.ts +++ b/src/coord/axisDefault.ts @@ -93,6 +93,8 @@ const defaultOption: AxisBaseOption = { }, splitLine: { show: true, + showMinLine: true, + showMaxLine: true, lineStyle: { color: ['#E0E6F1'], width: 1, diff --git a/test/axis-splitLine.html b/test/axis-splitLine.html new file mode 100644 index 0000000000..2dfd1a320d --- /dev/null +++ b/test/axis-splitLine.html @@ -0,0 +1,83 @@ + + + + + + + + + + + + + + + + + + + +
+ + + + + +