fix: project states fixes (#2731)

* fix: project states fixes

* fix: states fixes

* fix: formating all files
This commit is contained in:
sriram veeraghanta 2023-11-08 20:31:46 +05:30 committed by GitHub
parent bd1a850f35
commit 20fb79567f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
156 changed files with 1585 additions and 1758 deletions

View file

@ -32,9 +32,7 @@ export const BarGraph: React.FC<Props & TGraph & Omit<BarSvgProps<any>, "height"
axisLeft={{
tickSize: 0,
tickPadding: 10,
tickValues: customYAxisTickValues
? generateYAxisTickValues(customYAxisTickValues)
: undefined,
tickValues: customYAxisTickValues ? generateYAxisTickValues(customYAxisTickValues) : undefined,
}}
axisBottom={{
tickSize: 0,

View file

@ -25,9 +25,7 @@ export const LineGraph: React.FC<Props & TGraph & LineSvgProps> = ({
axisLeft={{
tickSize: 0,
tickPadding: 10,
tickValues: customYAxisTickValues
? generateYAxisTickValues(customYAxisTickValues)
: undefined,
tickValues: customYAxisTickValues ? generateYAxisTickValues(customYAxisTickValues) : undefined,
}}
theme={{ ...CHARTS_THEME, ...(theme ?? {}) }}
animate

View file

@ -5,9 +5,13 @@ import { TGraph } from "./types";
// constants
import { CHARTS_THEME, DEFAULT_MARGIN } from "constants/graph";
export const ScatterPlotGraph: React.FC<
TGraph & Omit<ScatterPlotSvgProps<any>, "height" | "width">
> = ({ height = "400px", width = "100%", margin, theme, ...rest }) => (
export const ScatterPlotGraph: React.FC<TGraph & Omit<ScatterPlotSvgProps<any>, "height" | "width">> = ({
height = "400px",
width = "100%",
margin,
theme,
...rest
}) => (
<div style={{ height, width }}>
<ResponsiveScatterPlot
margin={{ ...DEFAULT_MARGIN, ...(margin ?? {}) }}