mirror of
https://github.com/Unleash/unleash.git
synced 2025-07-17 13:46:47 +02:00
refactor: fix metrics chart series colors (#987)
This commit is contained in:
parent
752885a0ac
commit
a66168a348
@ -15,8 +15,8 @@ export const createChartData = (
|
|||||||
): ChartData<'line', IPoint[], string> => {
|
): ChartData<'line', IPoint[], string> => {
|
||||||
const requestsSeries = {
|
const requestsSeries = {
|
||||||
label: 'total requests',
|
label: 'total requests',
|
||||||
borderColor: theme.palette.primary.light,
|
borderColor: theme.palette.primary.main,
|
||||||
backgroundColor: theme.palette.primary.light,
|
backgroundColor: theme.palette.primary.main,
|
||||||
data: createChartPoints(metrics, locationSettings, m => m.yes + m.no),
|
data: createChartPoints(metrics, locationSettings, m => m.yes + m.no),
|
||||||
elements: {
|
elements: {
|
||||||
point: {
|
point: {
|
||||||
@ -31,8 +31,8 @@ export const createChartData = (
|
|||||||
|
|
||||||
const yesSeries = {
|
const yesSeries = {
|
||||||
label: 'exposed',
|
label: 'exposed',
|
||||||
borderColor: theme.palette.success.light,
|
borderColor: theme.palette.success.main,
|
||||||
backgroundColor: theme.palette.success.light,
|
backgroundColor: theme.palette.success.main,
|
||||||
data: createChartPoints(metrics, locationSettings, m => m.yes),
|
data: createChartPoints(metrics, locationSettings, m => m.yes),
|
||||||
elements: {
|
elements: {
|
||||||
point: {
|
point: {
|
||||||
@ -44,8 +44,8 @@ export const createChartData = (
|
|||||||
|
|
||||||
const noSeries = {
|
const noSeries = {
|
||||||
label: 'not exposed',
|
label: 'not exposed',
|
||||||
borderColor: theme.palette.error.light,
|
borderColor: theme.palette.error.main,
|
||||||
backgroundColor: theme.palette.error.light,
|
backgroundColor: theme.palette.error.main,
|
||||||
data: createChartPoints(metrics, locationSettings, m => m.no),
|
data: createChartPoints(metrics, locationSettings, m => m.no),
|
||||||
elements: {
|
elements: {
|
||||||
point: {
|
point: {
|
||||||
|
Loading…
Reference in New Issue
Block a user