1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-05-17 01:17:29 +02:00

refactor: fix metrics chart series colors (#987)

This commit is contained in:
olav 2022-05-13 09:42:24 +02:00 committed by GitHub
parent 752885a0ac
commit a66168a348

View File

@ -15,8 +15,8 @@ export const createChartData = (
): ChartData<'line', IPoint[], string> => {
const requestsSeries = {
label: 'total requests',
borderColor: theme.palette.primary.light,
backgroundColor: theme.palette.primary.light,
borderColor: theme.palette.primary.main,
backgroundColor: theme.palette.primary.main,
data: createChartPoints(metrics, locationSettings, m => m.yes + m.no),
elements: {
point: {
@ -31,8 +31,8 @@ export const createChartData = (
const yesSeries = {
label: 'exposed',
borderColor: theme.palette.success.light,
backgroundColor: theme.palette.success.light,
borderColor: theme.palette.success.main,
backgroundColor: theme.palette.success.main,
data: createChartPoints(metrics, locationSettings, m => m.yes),
elements: {
point: {
@ -44,8 +44,8 @@ export const createChartData = (
const noSeries = {
label: 'not exposed',
borderColor: theme.palette.error.light,
backgroundColor: theme.palette.error.light,
borderColor: theme.palette.error.main,
backgroundColor: theme.palette.error.main,
data: createChartPoints(metrics, locationSettings, m => m.no),
elements: {
point: {