Skip to content

Commit 5662d45

Browse files
authored
Merge pull request OneUptime#1647 from OneUptime/make-graphs-beautiful
Make graphs beautiful
2 parents 8ea5410 + 32ebb26 commit 5662d45

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

Common/Types/BrandColors.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,11 @@ export const BrightColors: Color[] = [
6565
Lime500,
6666
Amber500,
6767
];
68+
69+
export const ChartColors: Color[] = [
70+
Indigo500,
71+
Rose500,
72+
Green500,
73+
Cyan500,
74+
Gray500,
75+
];

Common/UI/Components/Charts/Line/LineChart.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Box, CartesianMarkerProps } from "@nivo/core";
22
import { LegendProps } from "@nivo/legends";
33
import { Point, ResponsiveLine } from "@nivo/line";
4-
import { BrightColors } from "Common/Types/BrandColors";
4+
import { ChartColors } from "Common/Types/BrandColors";
55
import Color from "Common/Types/Color";
66
import OneUptimeDate from "Common/Types/Date";
77
import React, { FunctionComponent, ReactElement } from "react";
@@ -228,7 +228,7 @@ const LineChart: FunctionComponent<ComponentProps> = (
228228
}),
229229
});
230230
}}
231-
colors={BrightColors.map((item: Color) => {
231+
colors={ChartColors.map((item: Color) => {
232232
return item.toString();
233233
})}
234234
legends={legends}

Dashboard/src/Components/Monitor/MonitorCharts/MonitorChart.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ export class MonitorCharts {
329329
return {
330330
type: YScaleType.LINEAR,
331331
min: 0,
332-
max: 10000,
332+
max: "auto",
333333
};
334334
} else if (data.checkOn === CheckOn.ResponseStatusCode) {
335335
return {

0 commit comments

Comments
 (0)