Skip to content

Commit

Permalink
further typescript who refactors
Browse files Browse the repository at this point in the history
  • Loading branch information
eatyourpeas committed Dec 30, 2024
1 parent d8d0b64 commit e53a3b8
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
20 changes: 20 additions & 0 deletions src/RCPCHChart/RCPCHChart.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,26 @@ export const CentileChartUKWHOGirlsHeightWithMeasurementsLegend: Story = {
},
};

export const CentileChartUKWHOBoysHeightWithMeasurementsLegend: Story = {
args: {
title: 'Patient Name - Hospital Number',
measurementMethod: 'height',
reference: 'uk-who',
sex: 'male',
logoVariant: 'legend',
measurements: { height: [] },
midParentalHeightData: {},
enableZoom: true,
chartType: 'centile',
enableExport: false,
exportChartCallback: () => {},
theme: 'tanner1',
height: 800,
width: 1000,
customThemeStyles: {},
},
};

export const CentileChartPrematureUKWHOGirlsHeightWithMeasurementsLegend: Story = {
args: {
title: 'Patient Name - Hospital Number',
Expand Down
2 changes: 1 addition & 1 deletion src/functions/labelIndexInterval.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export function labelIndexInterval(
chartScaleType: 'prem' | 'infant' | 'smallChild' | 'biggerChild' = 'biggerChild',
index: number,
reference: 'uk-who' | 'cdc' | 'trisomy-21' | 'trisomy-21-aap' | 'turner',
reference: 'uk-who' | 'cdc' | 'trisomy-21' | 'trisomy-21-aap' | 'turner' | 'who',
measurementMethod: 'height' | 'weight' | 'bmi' | 'ofc',
): boolean {
// returns true if index of data point in centile data array should be rendered
Expand Down

0 comments on commit e53a3b8

Please sign in to comment.