forked from GenSpectrum/cov-spectrum-website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
InternationalComparison.tsx
36 lines (36 loc) · 1.5 KB
/
InternationalComparison.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import { InternationalComparisonTable } from './InternationalComparisonTable';
import { MinimalWidgetLayout } from './MinimalWidgetLayout';
import { CountryDateCountSampleDataset } from '../data/sample/CountryDateCountSampleDataset';
import { VariantInternationalComparisonChartWidget } from '../widgets/VariantInternationalComparisonChartWidget';
import { LocationSelector } from '../data/LocationSelector';
interface Props {
locationSelector: LocationSelector;
variantInternationalDateCountDataset: CountryDateCountSampleDataset;
wholeInternationalDateCountDataset: CountryDateCountSampleDataset;
}
export const InternationalComparison = ({
variantInternationalDateCountDataset,
wholeInternationalDateCountDataset,
locationSelector,
}: Props) => {
const logScale = false;
console.log('values are');
console.log(wholeInternationalDateCountDataset);
console.log(variantInternationalDateCountDataset);
return (
<>
<VariantInternationalComparisonChartWidget.ShareableComponent
title='International comparison'
variantInternationalSampleSet={variantInternationalDateCountDataset}
wholeInternationalSampleSet={wholeInternationalDateCountDataset}
preSelectedCountries={locationSelector.country ? [locationSelector.country] : []}
widgetLayout={MinimalWidgetLayout}
height={300}
logScale={logScale}
/>
<InternationalComparisonTable
variantInternationalDateCountDataset={variantInternationalDateCountDataset}
/>
</>
);
};