What's Changed
📢 Cell is now deprecated and will be removed in the next major version. Please migrate all Cell usage to use the shape prop of respective chart elements. ‼️
Feat
New Hooks
useIsTooltipActive: returns if the tooltip is active by @PavelVanecek in #6880useActiveTooltipCoordinate: returns current tooltip coordinate by @PavelVanecek in #6880
Other
Tooltip: allowoffsetprop to accept Coordinate object by @bigsaigon333 in #6868
X/YAxisadd new axis type: "auto" by @PavelVanecek in #6823- sets the type to "category" for categorical axes, and "number" for numeric axis.
X/YAxis: replacetick: anywith explicit type by @PavelVanecek in #6911Bar/TypeScript: addBarShapePropstype to fixBar.shapetype by @PavelVanecek in #6900TypeScript: add missing useful type exports forcontent,shapefunctions, etc. @PavelVanecek in #6852
Fix
BarChart: fixstackOffset=signfor charts with 3 or more positive values in one series by @PavelVanecek in #6807BarStack: fix circular dependency when building with vite by @jkr2255 in #6777BarStack: fixBarStackclipPathin charts withstackOffset=signby @PavelVanecek in #6806BarStack: apply bar stack radius to active bars by @PavelVanecek in #6906
Chore
- Enabled
stricttsconfig by @PavelVanecek in #6842
Docs
We've started auto-generating our docs for the most part so you should see large improvements in accuracy of the docs between the code, the website, and the storybook. Huge shoutout to @PavelVanecek 🚀
- Dark mode 🕶️ by @cloud-walker in #6828
- Thanks @cloud-walker
- Recharts devtools has been added to all website examples for easier issue debugging
New Contributors
- @jkr2255 made their first contribution in #6777
- @cloud-walker made their first contribution in #6824
- @bigsaigon333 made their first contribution in #6868
- @huangkevin-apr made their first contribution in #6872
Full Changelog: v3.6.0...v3.7.0