plane/apps/app/constants/graph.ts
Aaryan Khandelwal d7928f853d
chore: global graph components (#1014)
* chore: global bar graph component

* chore: global pie graph component

* chore: global line graph component

* chore: removed unnecessary file

* chore: refactored global chart components to accept all props

* chore: global calendar graph component added

* chore: global scatter plot graph component
2023-05-11 17:11:04 +05:30

34 lines
627 B
TypeScript

import { Theme } from "@nivo/core";
export const CHARTS_THEME: Theme = {
background: "rgb(var(--color-bg-base))",
textColor: "rgb(var(--color-text-base))",
axis: {
domain: {
line: {
stroke: "rgb(var(--color-text-base))",
strokeWidth: 0.5,
},
},
},
tooltip: {
container: {
background: "rgb(var(--color-bg-surface-2))",
color: "rgb(var(--color-text-secondary))",
fontSize: "0.8rem",
},
},
grid: {
line: {
stroke: "rgb(var(--color-border))",
},
},
};
export const DEFAULT_MARGIN = {
top: 50,
right: 50,
bottom: 50,
left: 50,
};