Releases: rcpch/digital-growth-charts-react-component-library
v7.3.0
v7.2.2
Update
Fix for mid-parental height errors - pulls in fixes in API and python package. Replaces MPH calculation to one which takes an average of the parental height z scores and applies regression correction (0.5). 2 centiles either side of this are then rendered on the screen. The tool tips have been refactored to reflect this.
In addition, the failure of MPH to render in the under 2s has been addressed
Thank you to Dr Grosser from NHS Forth Valley for picking this up.
v7.2.1
Update
Fixes BMI crashing with centile label toggle on new CDC reference
Also fixes absent centile labels on new T21 AAP reference
Removes nondisjunction line in CDC for head circumference
v7.2.0
Update
Adds the Trisomy 21 AAP reference.
Goes alongside updates to server and RCPCHGrowth package (v4.2.1)
v7.1.4
Updates
- Updates dates in tooltips to reflect date in API response, not the UK locale date
- Y Axis label distance now calculated from y axis tick label font size
- BMI tooltip fix (percentage median BMI)
thanks again to @gdfreitas from SigmaMD for the contributions
v7.1.3
Updates
Includes new optional prop logoVariant
which accepts top
, bottom
, legend
.
This repositions the RCPCH logo optionally, or replaces it with a more discrete powered by RCPCH - version label below the reference.
Also fixes tests and adds storybook stories.
Thanks @gdfreitas for this work
v7.1.2
Thanks to @gdfreitas
Adds some custom styles to include a new ReferenceStyle
which relates to the reference text at the foot of the chart. Also some additions to the fontWeight props.
v7.1.1
Security update
Fix vulnerability in rollup by bumping version
v7.1.0
CDC
This includes the CDC (US) reference, updates the documentation and adds some stories to illustrate in Storybook.
See documentation
v7.0.13
New Features
- Nondisjunction lines - implementation following project board in August 2024. Clarification of the disjunction lines to signpost to user where centile lines break as references change. The existing tooltips remain, but the lines highlight the issue.
- Reintroduces
height
andwidth
props. Note, no correction is made for aspect ratio so the user must pick values that scale appropriately. The recommended height/width ratio is 4/5. The height and weight are used to calculate a scale factor for text SVGs
Bug fixes
- the use of
globalStyles
introduced with the font changes then overtook the DOM. This removesglobalStyles
in favour of a styled div