3
0

Add minor chart theme style changes

This commit is contained in:
Jože Fortun
2024-01-25 17:37:32 +01:00
committed by Mumbi Francis
parent 25195b5ba4
commit 27ef0339fb
6 changed files with 51 additions and 2 deletions

View File

@@ -88,6 +88,12 @@ export default class Chart extends BaseChart {
hideOverlap: true,
rotate: dimension.rotateLabel,
},
axisTick: {
show: false,
},
axisLine: {
show: false,
},
}
const tempYAxis = {
@@ -104,9 +110,14 @@ export default class Chart extends BaseChart {
rotate: yAxis.rotateLabel,
},
axisLine: {
show: true,
show: false,
onZero: false,
},
splitLine: {
lineStyle: {
color: [themeVariables['secondary']],
},
},
nameTextStyle: {
align: labelPosition === 'center' ? 'center' : position,
},
@@ -302,6 +313,11 @@ export default class Chart extends BaseChart {
textStyle: {
color: themeVariables.black,
},
pageTextStyle: {
color: themeVariables.black,
},
pageIconColor: themeVariables.black,
pageIconInactiveColor: themeVariables.light,
},
...options,
}

View File

@@ -128,6 +128,11 @@ export default class FunnelChart extends BaseChart {
textStyle: {
color: themeVariables.black,
},
pageTextStyle: {
color: themeVariables.black,
},
pageIconColor: themeVariables.black,
pageIconInactiveColor: themeVariables.light,
},
series: datasets.map(({ data }: any) => {
return {

View File

@@ -146,11 +146,13 @@ export default class GaugeChart extends BaseChart {
fontSize: 14,
show: tooltip.fixed,
offsetCenter: [0, '30%'],
color: themeVariables.black,
},
detail: {
fontSize: 13,
offsetCenter: [0, '55%'],
valueAnimation: true,
color: themeVariables.black,
},
data: [
{

View File

@@ -71,6 +71,11 @@ export default class RadarChart extends BaseChart {
textStyle: {
color: themeVariables.black,
},
pageTextStyle: {
color: themeVariables.black,
},
pageIconColor: themeVariables.black,
pageIconInactiveColor: themeVariables.light,
},
tooltip: {
show: true,

View File

@@ -102,6 +102,12 @@ export class BasicChartOptions extends ChartOptions {
hideOverlap: true,
rotate: xLabelRotation,
},
axisTick: {
show: false,
},
axisLine: {
show: false,
},
},
]
@@ -139,9 +145,14 @@ export class BasicChartOptions extends ChartOptions {
rotate: yLabelRotation,
},
axisLine: {
show: true,
show: false,
onZero: false,
},
splitLine: {
lineStyle: {
color: [themeVariables['secondary']],
},
},
nameTextStyle: {
align: labelPosition === 'center' ? 'center' : position,
padding: labelPosition !== 'center' ? (position === 'left' ? [0, 0, 2, -20] : [0, -20, 2, 0]) : undefined,
@@ -204,6 +215,11 @@ export class BasicChartOptions extends ChartOptions {
textStyle: {
color: themeVariables.black,
},
pageTextStyle: {
color: themeVariables.black,
},
pageIconColor: themeVariables.black,
pageIconInactiveColor: themeVariables.light,
},
...options,
}

View File

@@ -56,6 +56,11 @@ export class FunnelChartOptions extends ChartOptions {
textStyle: {
color: themeVariables.black,
},
pageTextStyle: {
color: themeVariables.black,
},
pageIconColor: themeVariables.black,
pageIconInactiveColor: themeVariables.light,
},
series: [
{