Fix color
This commit is contained in:
@@ -31,6 +31,7 @@ export class RevenueStreamWidget {
|
|||||||
|
|
||||||
initChart() {
|
initChart() {
|
||||||
const documentStyle = getComputedStyle(document.documentElement);
|
const documentStyle = getComputedStyle(document.documentElement);
|
||||||
|
const textColor = documentStyle.getPropertyValue('--text-color');
|
||||||
const borderColor = documentStyle.getPropertyValue('--surface-border');
|
const borderColor = documentStyle.getPropertyValue('--surface-border');
|
||||||
const textMutedColor = documentStyle.getPropertyValue('--text-color-secondary');
|
const textMutedColor = documentStyle.getPropertyValue('--text-color-secondary');
|
||||||
|
|
||||||
@@ -71,6 +72,13 @@ export class RevenueStreamWidget {
|
|||||||
this.chartOptions = {
|
this.chartOptions = {
|
||||||
maintainAspectRatio: false,
|
maintainAspectRatio: false,
|
||||||
aspectRatio: 0.8,
|
aspectRatio: 0.8,
|
||||||
|
plugins: {
|
||||||
|
legend: {
|
||||||
|
labels: {
|
||||||
|
color: textColor
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
scales: {
|
scales: {
|
||||||
x: {
|
x: {
|
||||||
stacked: true,
|
stacked: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user