Skip to content

Commit 2ff8805

Browse files
Merge pull request #64 from leoancap/syncMethod
add syncMethod prop to charts
2 parents 7b02a74 + 46e9aa5 commit 2ff8805

File tree

6 files changed

+16
-6
lines changed

6 files changed

+16
-6
lines changed

CHANGES.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 5.0.4
2+
3+
- add `syncMethod` prop to `LineChart`, `AreaChart`, `BarChart`, `ComposedChart`
4+
15
## 5.0.3
26

37
- fix tick props in `XAxis`, `YAxis` and `ZAxis`
@@ -12,8 +16,8 @@
1216

1317
## 5.0.0
1418

15-
- *[breaking]* improve bindings for XYZ axes, Treemap, Pie and Cell components [#59](https://github.com/ahrefs/melange-recharts/pull/59)
16-
- *[breaking]* remove `TooltipCursor` module [#60](https://github.com/ahrefs/melange-recharts/pull/60)
19+
- _[breaking]_ improve bindings for XYZ axes, Treemap, Pie and Cell components [#59](https://github.com/ahrefs/melange-recharts/pull/59)
20+
- _[breaking]_ remove `TooltipCursor` module [#60](https://github.com/ahrefs/melange-recharts/pull/60)
1721

1822
## 4.0.7 (2024-11-23)
1923

@@ -104,10 +108,10 @@
104108

105109
## 1.0.2 (2021-05-19)
106110

107-
- Bump url-parse from 1.4.7 to 1.5.1 in /examples (#40)
108-
- Bump lodash from 4.17.19 to 4.17.21 in /examples (#41)
109-
- Bump elliptic from 6.5.3 to 6.5.4 in /examples (#36)
110-
- Bump y18n from 4.0.0 to 4.0.1 in /examples (#37)
111+
- Bump url-parse from 1.4.7 to 1.5.1 in /examples (#40)
112+
- Bump lodash from 4.17.19 to 4.17.21 in /examples (#41)
113+
- Bump elliptic from 6.5.3 to 6.5.4 in /examples (#36)
114+
- Bump y18n from 4.0.0 to 4.0.1 in /examples (#37)
111115

112116
## 1.0.1 (2021-01-09)
113117

src/AreaChart.re

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ external make:
1919
~onMouseMove: (Js.Nullable.t(Js.t({..})), React.Event.Mouse.t) => unit=?,
2020
~stackOffset: stackOffset=?,
2121
~syncId: string=?,
22+
~syncMethod: syncMethod=?,
2223
~width: int=?,
2324
~children: React.element
2425
) =>

src/BarChart.re

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ external make:
2323
~reverseStackOrder: bool=?,
2424
~stackOffset: stackOffset=?,
2525
~syncId: string=?,
26+
~syncMethod: syncMethod=?,
2627
~width: int=?,
2728
~children: React.element
2829
) =>

src/ComposedChart.re

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ external make:
2222
~reverseStackOrder: bool=?,
2323
~stackOffset: stackOffset=?,
2424
~syncId: string=?,
25+
~syncMethod: syncMethod=?,
2526
~width: int=?,
2627
~children: React.element
2728
) =>

src/LineChart.re

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ external make:
1717
~onMouseLeave: (Js.t({..}), React.Event.Mouse.t) => unit=?,
1818
~onMouseMove: (Js.Nullable.t(Js.t({..})), React.Event.Mouse.t) => unit=?,
1919
~syncId: string=?,
20+
~syncMethod: syncMethod=?,
2021
~width: int=?,
2122
~children: React.element
2223
) =>

src/Utils.re

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ type layout = [ | `horizontal | `vertical];
5050

5151
type stackOffset = [ | `expand | `none | `wiggle | `silhouette | `sign];
5252

53+
type syncMethod = [ | `index | `value];
54+
5355
type margin = {
5456
.
5557
"top": int,

0 commit comments

Comments
 (0)