Fix text color
This commit is contained in:
@@ -84,9 +84,9 @@ export class ChartDemo {
|
|||||||
|
|
||||||
initCharts() {
|
initCharts() {
|
||||||
const documentStyle = getComputedStyle(document.documentElement);
|
const documentStyle = getComputedStyle(document.documentElement);
|
||||||
const textColor = documentStyle.getPropertyValue('--p-text-color');
|
const textColor = documentStyle.getPropertyValue('--text-color');
|
||||||
const textColorSecondary = documentStyle.getPropertyValue('--p-text-muted-color');
|
const textColorSecondary = documentStyle.getPropertyValue('--text-color-secondary');
|
||||||
const surfaceBorder = documentStyle.getPropertyValue('--p-content-border-color');
|
const surfaceBorder = documentStyle.getPropertyValue('--surface-border');
|
||||||
|
|
||||||
this.barData = {
|
this.barData = {
|
||||||
labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July'],
|
labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July'],
|
||||||
@@ -235,10 +235,14 @@ export class ChartDemo {
|
|||||||
scales: {
|
scales: {
|
||||||
r: {
|
r: {
|
||||||
grid: {
|
grid: {
|
||||||
color: surfaceBorder
|
color: surfaceBorder,
|
||||||
}
|
},
|
||||||
}
|
ticks: {
|
||||||
}
|
display: false,
|
||||||
|
color: textColorSecondary
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
this.radarData = {
|
this.radarData = {
|
||||||
@@ -276,7 +280,7 @@ export class ChartDemo {
|
|||||||
scales: {
|
scales: {
|
||||||
r: {
|
r: {
|
||||||
grid: {
|
grid: {
|
||||||
color: textColorSecondary
|
color: surfaceBorder
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user