File tree Expand file tree Collapse file tree 3 files changed +11
-3
lines changed
UI/Components/Charts/Line
Dashboard/src/Components/Monitor/MonitorCharts Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -65,3 +65,11 @@ export const BrightColors: Color[] = [
65
65
Lime500 ,
66
66
Amber500 ,
67
67
] ;
68
+
69
+ export const ChartColors : Color [ ] = [
70
+ Indigo500 ,
71
+ Rose500 ,
72
+ Green500 ,
73
+ Cyan500 ,
74
+ Gray500 ,
75
+ ] ;
Original file line number Diff line number Diff line change 1
1
import { Box , CartesianMarkerProps } from "@nivo/core" ;
2
2
import { LegendProps } from "@nivo/legends" ;
3
3
import { Point , ResponsiveLine } from "@nivo/line" ;
4
- import { BrightColors } from "Common/Types/BrandColors" ;
4
+ import { ChartColors } from "Common/Types/BrandColors" ;
5
5
import Color from "Common/Types/Color" ;
6
6
import OneUptimeDate from "Common/Types/Date" ;
7
7
import React , { FunctionComponent , ReactElement } from "react" ;
@@ -228,7 +228,7 @@ const LineChart: FunctionComponent<ComponentProps> = (
228
228
} ) ,
229
229
} ) ;
230
230
} }
231
- colors = { BrightColors . map ( ( item : Color ) => {
231
+ colors = { ChartColors . map ( ( item : Color ) => {
232
232
return item . toString ( ) ;
233
233
} ) }
234
234
legends = { legends }
Original file line number Diff line number Diff line change @@ -329,7 +329,7 @@ export class MonitorCharts {
329
329
return {
330
330
type : YScaleType . LINEAR ,
331
331
min : 0 ,
332
- max : 10000 ,
332
+ max : "auto" ,
333
333
} ;
334
334
} else if ( data . checkOn === CheckOn . ResponseStatusCode ) {
335
335
return {
You can’t perform that action at this time.
0 commit comments