mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
d7928f853d
* 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
34 lines
627 B
TypeScript
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,
|
|
};
|