Skip to content

Commit 8d0590d

Browse files
author
Robert Crocker
committed
Cleaned up the tooltipVisible type.
1 parent 375b98b commit 8d0590d

File tree

2 files changed

+5
-18
lines changed

2 files changed

+5
-18
lines changed

src/components/ColorLegend.tsx

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -175,19 +175,6 @@ export const ColorLegend = ({
175175

176176
useEffect(() => setLegendOffset([rectWidth, rectHeight]), []);
177177

178-
// const style: React.CSSProperties | undefined = {
179-
// boxSizing: 'border-box',
180-
// width: '100%',
181-
// height: '100%',
182-
// border: `1px solid #ddd`,
183-
// borderRadius: '4px',
184-
// // You can also use a fixed width and ommit the white-sapce.
185-
// whiteSpace: 'nowrap',
186-
// backgroundColor: '#ffffff',
187-
// fontFamily: 'Tahoma, Geneva, Verdana, sans-serif',
188-
// fontSize: '12px',
189-
// color: '#737373',
190-
// };
191178
return (
192179
<g
193180
data-testid={dataTestId}

types.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export interface ScatterPlotProps<T> {
5353
| 'schemeGreens'
5454
| 'schemeBlues'
5555
| 'schemeSpectral';
56-
tooltipVisible?: false | true;
56+
tooltipVisible?: boolean;
5757
}
5858

5959
export interface BarChartProps<T> {
@@ -94,7 +94,7 @@ export interface BarChartProps<T> {
9494
| 'schemeGreens'
9595
| 'schemeBlues'
9696
| 'schemeSpectral';
97-
tooltipVisible?: false | true;
97+
tooltipVisible?: boolean;
9898
}
9999

100100
export interface LineChartProps<T> {
@@ -138,7 +138,7 @@ export interface LineChartProps<T> {
138138
| 'schemeGreens'
139139
| 'schemeBlues'
140140
| 'schemeSpectral';
141-
tooltipVisible?: false | true;
141+
tooltipVisible?: boolean;
142142
}
143143

144144
export interface AreaChartProps<T> {
@@ -181,7 +181,7 @@ export interface AreaChartProps<T> {
181181
| 'schemeGreens'
182182
| 'schemeBlues'
183183
| 'schemeSpectral';
184-
tooltipVisible?: false | true;
184+
tooltipVisible?: boolean;
185185
}
186186

187187
export interface PieChartProps {
@@ -217,7 +217,7 @@ export interface PieChartProps {
217217
| 'schemeGreens'
218218
| 'schemeBlues'
219219
| 'schemeSpectral';
220-
tooltipVisible?: false | true;
220+
tooltipVisible?: boolean;
221221
}
222222

223223
export interface PieChartBodyProps {

0 commit comments

Comments
 (0)