fix(图表): 修复线面图纵轴网格线实线不生效

This commit is contained in:
wisonic-s
2025-09-02 15:54:21 +08:00
committed by wisonic-s
parent 9bbb219a0a
commit b852d3fbc5
10 changed files with 14 additions and 14 deletions

View File

@@ -355,7 +355,7 @@ export class BidirectionalHorizontalBar extends G2ChartView {
if (xAxis.axisLine.lineStyle.style === 'dotted') {
lineLineDash = [1, 2]
}
let gridLineDash = [1, 0]
let gridLineDash = [0, 0]
if (xAxis.splitLine.lineStyle.style === 'dashed') {
gridLineDash = [10, 8]
}

View File

@@ -360,7 +360,7 @@ export class StockLine extends G2ChartView {
if (xAxis.axisLine.lineStyle.style === 'dotted') {
lineLineDash = [1, 2]
}
let gridLineDash = undefined
let gridLineDash = [0, 0]
if (xAxis.splitLine.lineStyle.style === 'dashed') {
gridLineDash = [10, 8]
}

View File

@@ -315,7 +315,7 @@ export class Area extends G2ChartView {
if (xAxis.axisLine.lineStyle.style === 'dotted') {
lineLineDash = [1, 2]
}
let gridLineDash = undefined
let gridLineDash = [0, 0]
if (xAxis.splitLine.lineStyle.style === 'dashed') {
gridLineDash = [10, 8]
}

View File

@@ -308,7 +308,7 @@ export class Line extends G2ChartView {
if (xAxis.axisLine.lineStyle.style === 'dotted') {
lineLineDash = [1, 2]
}
let gridLineDash = undefined
let gridLineDash = [0, 0]
if (xAxis.splitLine.lineStyle.style === 'dashed') {
gridLineDash = [10, 8]
}

View File

@@ -643,7 +643,7 @@ export class GroupLineMix extends G2ChartView {
if (xAxis.axisLine.lineStyle.style === 'dotted') {
lineLineDash = [1, 2]
}
let gridLineDash = undefined
let gridLineDash = [0, 0]
if (xAxis.splitLine.lineStyle.style === 'dashed') {
gridLineDash = [10, 8]
}

View File

@@ -626,14 +626,14 @@ export class GroupLineMix extends G2ChartView {
defaultsDeep(view, axisHide)
return options
}
let lineLineDash = undefined
let lineLineDash = [0, 0]
if (xAxis.axisLine.lineStyle.style === 'dashed') {
lineLineDash = [10, 8]
}
if (xAxis.axisLine.lineStyle.style === 'dotted') {
lineLineDash = [1, 2]
}
let gridLineDash = undefined
let gridLineDash = [0, 0]
if (xAxis.splitLine.lineStyle.style === 'dashed') {
gridLineDash = [10, 8]
}

View File

@@ -625,14 +625,14 @@ export class StackLineMix extends G2ChartView {
defaultsDeep(view, axisHide)
return options
}
let lineLineDash = undefined
let lineLineDash = [0, 0]
if (xAxis.axisLine.lineStyle.style === 'dashed') {
lineLineDash = [10, 8]
}
if (xAxis.axisLine.lineStyle.style === 'dotted') {
lineLineDash = [1, 2]
}
let gridLineDash = undefined
let gridLineDash = [0, 0]
if (xAxis.splitLine.lineStyle.style === 'dashed') {
gridLineDash = [10, 8]
}

View File

@@ -465,14 +465,14 @@ export class ColumnLineMix extends G2ChartView {
}
return defaultsDeep(options, axisHide)
}
let lineLineDash = undefined
let lineLineDash = [0, 0]
if (xAxis.axisLine.lineStyle.style === 'dashed') {
lineLineDash = [10, 8]
}
if (xAxis.axisLine.lineStyle.style === 'dotted') {
lineLineDash = [1, 2]
}
let gridLineDash = undefined
let gridLineDash = [0, 0]
if (xAxis.splitLine.lineStyle.style === 'dashed') {
gridLineDash = [10, 8]
}

View File

@@ -277,14 +277,14 @@ export class Quadrant extends G2ChartView {
}
return defaultsDeep(options, axisHide)
}
let lineLineDash = undefined
let lineLineDash = [0, 0]
if (xAxis.axisLine.lineStyle.style === 'dashed') {
lineLineDash = [10, 8]
}
if (xAxis.axisLine.lineStyle.style === 'dotted') {
lineLineDash = [1, 2]
}
let gridLineDash = undefined
let gridLineDash = [0, 0]
if (xAxis.splitLine.lineStyle.style === 'dashed') {
gridLineDash = [10, 8]
}

View File

@@ -372,7 +372,7 @@ export class Scatter extends G2ChartView {
if (xAxis.axisLine.lineStyle.style === 'dotted') {
lineLineDash = [1, 2]
}
let gridLineDash = undefined
let gridLineDash = [0, 0]
if (xAxis.splitLine.lineStyle.style === 'dashed') {
gridLineDash = [10, 8]
}