mirror of
https://github.com/dataease/dataease.git
synced 2026-06-17 04:51:43 +08:00
fix(图表): 修复双轴图横轴和图例标签显示模糊
This commit is contained in:
@@ -388,7 +388,9 @@ export class GroupLineMix extends G2ChartView {
|
||||
itemMarker: legend.icon,
|
||||
itemMarkerSize: legend.size,
|
||||
itemLabelFontSize: legend.fontSize,
|
||||
itemLabelFill: legend.color
|
||||
itemLabelFill: legend.color,
|
||||
itemLabelOpacity: 1,
|
||||
itemLabelFillOpacity: 1
|
||||
}
|
||||
unionRelations.forEach(([key, value]) => {
|
||||
legendMark.scale.color.domain.push(key)
|
||||
@@ -663,6 +665,7 @@ export class GroupLineMix extends G2ChartView {
|
||||
lineLineWidth: xAxis.axisLine.lineStyle.width,
|
||||
lineLineDash,
|
||||
label: xAxis.axisLabel.show,
|
||||
labelOpacity: 1,
|
||||
labelFill: xAxis.axisLabel.color,
|
||||
labelFillOpacity: 1,
|
||||
labelFontSize: xAxis.axisLabel.fontSize,
|
||||
|
||||
@@ -378,7 +378,9 @@ export class GroupLineMix extends G2ChartView {
|
||||
itemMarker: legend.icon,
|
||||
itemMarkerSize: legend.size,
|
||||
itemLabelFontSize: legend.fontSize,
|
||||
itemLabelFill: legend.color
|
||||
itemLabelFill: legend.color,
|
||||
itemLabelOpacity: 1,
|
||||
itemLabelFillOpacity: 1
|
||||
}
|
||||
unionRelations.forEach(([key, value]) => {
|
||||
legendMark.scale.color.domain.push(key)
|
||||
@@ -653,6 +655,7 @@ export class GroupLineMix extends G2ChartView {
|
||||
lineLineWidth: xAxis.axisLine.lineStyle.width,
|
||||
lineLineDash,
|
||||
label: xAxis.axisLabel.show,
|
||||
labelOpacity: 1,
|
||||
labelFill: xAxis.axisLabel.color,
|
||||
labelFillOpacity: 1,
|
||||
labelFontSize: xAxis.axisLabel.fontSize,
|
||||
|
||||
@@ -377,7 +377,9 @@ export class StackLineMix extends G2ChartView {
|
||||
itemMarker: legend.icon,
|
||||
itemMarkerSize: legend.size,
|
||||
itemLabelFontSize: legend.fontSize,
|
||||
itemLabelFill: legend.color
|
||||
itemLabelFill: legend.color,
|
||||
itemLabelOpacity: 1,
|
||||
itemLabelFillOpacity: 1
|
||||
}
|
||||
unionRelations.forEach(([key, value]) => {
|
||||
legendMark.scale.color.domain.push(key)
|
||||
@@ -652,6 +654,7 @@ export class StackLineMix extends G2ChartView {
|
||||
lineLineWidth: xAxis.axisLine.lineStyle.width,
|
||||
lineLineDash,
|
||||
label: xAxis.axisLabel.show,
|
||||
labelOpacity: 1,
|
||||
labelFill: xAxis.axisLabel.color,
|
||||
labelFillOpacity: 1,
|
||||
labelFontSize: xAxis.axisLabel.fontSize,
|
||||
|
||||
@@ -492,6 +492,7 @@ export class ColumnLineMix extends G2ChartView {
|
||||
lineLineWidth: xAxis.axisLine.lineStyle.width,
|
||||
lineLineDash,
|
||||
label: xAxis.axisLabel.show,
|
||||
labelOpacity: 1,
|
||||
labelFill: xAxis.axisLabel.color,
|
||||
labelFillOpacity: 1,
|
||||
labelFontSize: xAxis.axisLabel.fontSize,
|
||||
|
||||
@@ -75,6 +75,8 @@ export abstract class G2ChartView<
|
||||
itemMarkerSize: legendSize,
|
||||
itemLabelFontSize: legendFontSize,
|
||||
itemLabelFill: legendColor,
|
||||
itemLabelFillOpacity: 1,
|
||||
itemLabelOpacity: 1,
|
||||
navPageNumFontSize: legendSize,
|
||||
navPageNumFill: legendColor,
|
||||
navButtonSize: legendSize,
|
||||
|
||||
Reference in New Issue
Block a user