You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: src/RCPCHChart/RCPCHChart.mdx
+127-12
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ Other props are:
18
18
19
19
-`title: string;` the title of the chart : could include patient name and identifiers
20
20
-`measurementMethod: 'height' | 'weight' | 'ofc' | 'bmi';`_must_ be one of the options provided
21
-
-`reference: 'uk-who' | 'turner' | 'trisomy-21';`_must_ be one of the options provided
21
+
-`reference: 'uk-who' | 'turner' | 'trisomy-21' | 'cdc';`_must_ be one of the options provided
22
22
-`sex: 'male' | 'female';`_must_ be one of the options provided
23
23
-`measurements: { measurementMethod: Measurement[]};` array of measurements returned from RCPCH Growth API. This should not be edited or manipulated. **NOTE this has changed in v7.0.0**
24
24
-`midParentalHeightData?: MidParentalHeightObject | undefined;` an RCPCH object returned from the RCPCH Growth API. Should not be edited or manipulated
@@ -332,7 +332,7 @@ Themes are collections of styles. The RCPCH have created some suggested themes:
332
332
5. Tanner 3: Red and yellow
333
333
6. Custom
334
334
335
-
These themes all have predefined attributes for `fontFamily`, `color`, `size`, `stroke` and `strokeWidth` for different aspects of the charts.
335
+
These themes all have predefined attributes for `fontFamily`, `color`, `size`, `weight`, `stroke` and `strokeWidth` for different aspects of the charts.
336
336
If these attributes are too prescriptive and users would like either to build their own theme,
337
337
or override styles within an existing theme, this can be done by passing in custom styles through the `customThemeStyles` prop.
338
338
@@ -344,36 +344,40 @@ All attributes are optional, therefore only those attributes where changes are r
344
344
-`centileStyle?: CentileStyle;`
345
345
-`sdsStyle?: SDSStyle;`
346
346
-`measurementStyle?: MeasurementStyle;`
347
+
-`referenceStyle?: ReferenceStyle;`
347
348
348
349
The attributes of each of these are below:
349
350
350
351
#### `ChartStyle`
351
352
352
353
-`backgroundColour?: string;` //background colour of chart
353
-
-`titleStyle?: TextStyle`| undefined; // style of text in title: includes fontFamily, fontSize, colour, weight (regular/bold/italic)
354
-
-`subTitleStyle?: TextStyle`| undefined; // style of text in subtitle: includes fontFamily, fontSize, colour, weight (regular/bold/italic)
354
+
-`titleStyle?: TextStyle`; // style of text in title: includes fontFamily, fontSize, colour, style, weight
355
+
-`subTitleStyle?: TextStyle`; // style of text in subtitle: includes fontFamily, fontSize, colour, style, weight
355
356
-`tooltipBackgroundColour?: string;` //background colour of tooltip
356
357
-`tooltipStroke?: string;` //border colour of tooltip
0 commit comments