Skip to content

Version 4 - Alpha 1

Compare
Choose a tag to compare
@whawker whawker released this 20 Sep 15:33
· 297 commits to master since this release

Version 4 is a rewrite of the libraries using React hooks.

What's new in version 4:

  • React rerender performance should be improved
  • Full bundle size is around 25% smaller
  • React devtools shows shallower tree which eases debugging

Most of the time upgrade to version 4 should go without changes to the code, but there are some breaking changes. If you are having problems with upgrade, be feed back via this issue

Breaking changes

These should not affect many users:

  • provide methods are replaced with hooks:
    • provideHighcharts --> useHighcharts
    • provideChart --> useChart
    • provideAxis --> useAxis
    • provideSeries --> useSeries
  • Values in Contexts are changed from functions to objects

New features

  • Caption component for setting chart caption
<Caption>
  This is a caption.
</Caption>
  • Hooks for extending the library