Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Lily Kuang committed Feb 22, 2023
1 parent f47e3a8 commit a60846c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,14 @@ import {
} from '@visx/xychart';

interface Props {
ariaLabel: string;
dataKey: string;
className?: string;
data: Array<number>;
entries: Array<any>;
height: number;
numberFormat?: string;
dateFormat?: string;
numberFormat: string;
dateFormat: string;
renderTooltip: ({ index }: { index: number }) => React.ReactNode;
showYAxis: boolean;
width: number;
Expand Down Expand Up @@ -80,6 +81,7 @@ function isValidBoundValue(value?: number | string) {
}

const SparklineCell = ({
ariaLabel,
dataKey,
data,
width = 300,
Expand Down Expand Up @@ -160,6 +162,7 @@ const SparklineCell = ({
return (
<>
<XYChart
accessibilityLabel={ariaLabel}
width={width}
height={height}
margin={margin}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ const TimeTable = ({

return (
<SparklineCell
ariaLabel={`spark-${valueField}`}
width={parseInt(column.width, 10) || 300}
height={parseInt(column.height, 10) || 50}
data={sparkData}
Expand Down

0 comments on commit a60846c

Please sign in to comment.