Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IVYPORTAL 18247 Statistic on dark mode enhancement #1463

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,14 @@ class ClientPieChart extends ClientCanvasChart {
},
options: {
responsive: true,
maintainAspectRatio: false
maintainAspectRatio: false,
plugins: {
legend: {
labels: {
color: getCssVariable('--ivy-primary-color-medium')
}
}
}
}
});
}
Expand Down Expand Up @@ -407,7 +414,8 @@ class ClientCartesianChart extends ClientCanvasChart {
datasets: [{
label: config.name,
data: data.map(bucket => bucket.count),
backgroundColor: chartColors
backgroundColor: chartColors,
borderColor:chartColors
}]
},
options: {
Expand All @@ -423,16 +431,28 @@ class ClientCartesianChart extends ClientCanvasChart {
beginAtZero: true,
title: {
text: chartTypeConfig.yTitle,
display: true
display: true,
color: getCssVariable('--ivy-primary-color-medium')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

scales: { y: { beginAtZero: true, title: { text: chartTypeConfig.yTitle, display: true, color: '#808080' }, ticks: { stepSize: stepSize, color: '#808080' }, grid: { color: 'rgba(192, 192, 192, 0.5)' } }, x: { title: { text: chartTypeConfig.xTitle, display: true, color: '#808080' }, ticks: { color: '#808080' }, grid: { color: 'rgba(192, 192, 192, 0.5)' } } }

Please check if these colors is good or not

},
ticks: {
stepSize: stepSize
stepSize: stepSize,
color: getCssVariable('--ivy-primary-color-medium')
},
grid: {
color: getCssVariable('--ivy-primary-color-medium')
}
},
x: {
title: {
text: chartTypeConfig.xTitle,
display: true
display: true,
color: getCssVariable('--ivy-primary-color-medium')
},
ticks: {
color: getCssVariable('--ivy-primary-color-medium')
},
grid: {
color: getCssVariable('--ivy-primary-color-medium')
}
}
}
Expand Down
Loading