2023-05-11 12:08:46 +00:00
|
|
|
// nivo
|
2023-05-11 11:41:04 +00:00
|
|
|
import { Theme } from "@nivo/core";
|
|
|
|
|
|
|
|
export const CHARTS_THEME: Theme = {
|
2023-07-10 07:17:00 +00:00
|
|
|
background: "transparent",
|
2023-07-10 06:55:32 +00:00
|
|
|
textColor: "rgb(var(--color-text-200))",
|
2023-05-11 11:41:04 +00:00
|
|
|
axis: {
|
|
|
|
domain: {
|
|
|
|
line: {
|
2023-07-10 06:55:32 +00:00
|
|
|
stroke: "rgb(var(--color-background-80))",
|
2023-05-11 11:41:04 +00:00
|
|
|
strokeWidth: 0.5,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
tooltip: {
|
|
|
|
container: {
|
2023-07-10 06:55:32 +00:00
|
|
|
background: "rgb(var(--color-background-80))",
|
|
|
|
color: "rgb(var(--color-text-200))",
|
2023-05-11 11:41:04 +00:00
|
|
|
fontSize: "0.8rem",
|
2023-07-20 09:44:57 +00:00
|
|
|
border: "1px solid rgb(var(--color-border-300))",
|
2023-05-11 11:41:04 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
grid: {
|
|
|
|
line: {
|
2023-07-20 09:44:57 +00:00
|
|
|
stroke: "rgb(var(--color-border-100))",
|
2023-05-11 11:41:04 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
export const DEFAULT_MARGIN = {
|
|
|
|
top: 50,
|
|
|
|
right: 50,
|
|
|
|
bottom: 50,
|
|
|
|
left: 50,
|
|
|
|
};
|