Skip to content

Commit e53a3b8

Browse files
committed
further typescript who refactors
1 parent d8d0b64 commit e53a3b8

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

src/RCPCHChart/RCPCHChart.stories.tsx

+20
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,26 @@ export const CentileChartUKWHOGirlsHeightWithMeasurementsLegend: Story = {
7979
},
8080
};
8181

82+
export const CentileChartUKWHOBoysHeightWithMeasurementsLegend: Story = {
83+
args: {
84+
title: 'Patient Name - Hospital Number',
85+
measurementMethod: 'height',
86+
reference: 'uk-who',
87+
sex: 'male',
88+
logoVariant: 'legend',
89+
measurements: { height: [] },
90+
midParentalHeightData: {},
91+
enableZoom: true,
92+
chartType: 'centile',
93+
enableExport: false,
94+
exportChartCallback: () => {},
95+
theme: 'tanner1',
96+
height: 800,
97+
width: 1000,
98+
customThemeStyles: {},
99+
},
100+
};
101+
82102
export const CentileChartPrematureUKWHOGirlsHeightWithMeasurementsLegend: Story = {
83103
args: {
84104
title: 'Patient Name - Hospital Number',

src/functions/labelIndexInterval.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
export function labelIndexInterval(
22
chartScaleType: 'prem' | 'infant' | 'smallChild' | 'biggerChild' = 'biggerChild',
33
index: number,
4-
reference: 'uk-who' | 'cdc' | 'trisomy-21' | 'trisomy-21-aap' | 'turner',
4+
reference: 'uk-who' | 'cdc' | 'trisomy-21' | 'trisomy-21-aap' | 'turner' | 'who',
55
measurementMethod: 'height' | 'weight' | 'bmi' | 'ofc',
66
): boolean {
77
// returns true if index of data point in centile data array should be rendered

0 commit comments

Comments
 (0)