Skip to content

Commit

Permalink
Merge pull request #64 from leoancap/syncMethod
Browse files Browse the repository at this point in the history
add syncMethod prop to charts
  • Loading branch information
bryanthomaschen authored Jan 13, 2025
2 parents 7b02a74 + 46e9aa5 commit 2ff8805
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 6 deletions.
16 changes: 10 additions & 6 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 5.0.4

- add `syncMethod` prop to `LineChart`, `AreaChart`, `BarChart`, `ComposedChart`

## 5.0.3

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

## 5.0.0

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

## 4.0.7 (2024-11-23)

Expand Down Expand Up @@ -104,10 +108,10 @@

## 1.0.2 (2021-05-19)

- Bump url-parse from 1.4.7 to 1.5.1 in /examples (#40)
- Bump lodash from 4.17.19 to 4.17.21 in /examples (#41)
- Bump elliptic from 6.5.3 to 6.5.4 in /examples (#36)
- Bump y18n from 4.0.0 to 4.0.1 in /examples (#37)
- Bump url-parse from 1.4.7 to 1.5.1 in /examples (#40)
- Bump lodash from 4.17.19 to 4.17.21 in /examples (#41)
- Bump elliptic from 6.5.3 to 6.5.4 in /examples (#36)
- Bump y18n from 4.0.0 to 4.0.1 in /examples (#37)

## 1.0.1 (2021-01-09)

Expand Down
1 change: 1 addition & 0 deletions src/AreaChart.re
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ external make:
~onMouseMove: (Js.Nullable.t(Js.t({..})), React.Event.Mouse.t) => unit=?,
~stackOffset: stackOffset=?,
~syncId: string=?,
~syncMethod: syncMethod=?,
~width: int=?,
~children: React.element
) =>
Expand Down
1 change: 1 addition & 0 deletions src/BarChart.re
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ external make:
~reverseStackOrder: bool=?,
~stackOffset: stackOffset=?,
~syncId: string=?,
~syncMethod: syncMethod=?,
~width: int=?,
~children: React.element
) =>
Expand Down
1 change: 1 addition & 0 deletions src/ComposedChart.re
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ external make:
~reverseStackOrder: bool=?,
~stackOffset: stackOffset=?,
~syncId: string=?,
~syncMethod: syncMethod=?,
~width: int=?,
~children: React.element
) =>
Expand Down
1 change: 1 addition & 0 deletions src/LineChart.re
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ external make:
~onMouseLeave: (Js.t({..}), React.Event.Mouse.t) => unit=?,
~onMouseMove: (Js.Nullable.t(Js.t({..})), React.Event.Mouse.t) => unit=?,
~syncId: string=?,
~syncMethod: syncMethod=?,
~width: int=?,
~children: React.element
) =>
Expand Down
2 changes: 2 additions & 0 deletions src/Utils.re
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ type layout = [ | `horizontal | `vertical];

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

type syncMethod = [ | `index | `value];

type margin = {
.
"top": int,
Expand Down

0 comments on commit 2ff8805

Please sign in to comment.