Repository navigation
2.0.0
The 2.0 line targets SciChart.js v6 and is built and verified against scichart 6.0.1.
Breaking
scichartpeer dependency is now v6+. The engine ships one unionscichart.wasminstead of
thescichart2d.wasm/scichart3d.wasmpair, and there are no more.datafiles. The WASM
payload to deploy is the whole_wasmdirectory, not a single file. Apps staying on
scichart 3.x–5.x should stay on scichart-react 1.x. When upgrading the core library, the
scichart-migratecodemod automates the renames.- The
configprop moved to the newSciChartDeclarativecomponent. Replace
<SciChartReact config={...} />with<SciChartDeclarative config={...} />— one JSX rename,
all other props identical.SciChartReactnow requiresinitChartand throws a pointer error
if it receivesconfig. SciChartOverviewno longer mirrors palette providers, animations or data labels onto the
overview's mini series. Set them on the overview series explicitly if you relied on that.- The Builder API registers nothing on import. Since SciChart v6, types used by a JSON config
must be registered explicitly (registerNumericAxis,registerXyDataSeries, …), or via the
registerAllTypes()escape hatch.SciChartDeclarativecallsregisterAllTypes()internally,
so declarative users are unaffected.
Added
SciChartDeclarative— the JSON-config component split out ofSciChartReact.configureSciChartDefaults— the import-time global defaults, now also callable directly and
importable asscichart-react/configureDefaults.- Exported types
IChartComponentPropsCore,TChartComponentPropsWithInitand
TChartComponentPropsWithConfig. SciChartMemoryDebugWrappergained adefaultRenderChildrenprop, so the children can be
rendered on the first render instead of waiting for the checkbox. Its props are now typed
rather thanany.
Changed
- Dual ESM/CJS output with an
exportsmap, amoduleentry and subpath deep imports
(scichart-react/SciChartGroup), replacing the single flat CommonJS build. sideEffectsnarrowed toconfigureDefaults.jsonly, so bundlers can drop everything a
consumer does not import. AninitChart-only bundle no longer drags in the Builder."use client"directives added, so the components work in React Server Component setups.reactpeer dependency raised to>=16.14.0.- Each surface returned from
initChartis marked as externally lifecycle-managed, which
suppresses the core's "root detached before delete" and "surface already deleted"
memory-debug warnings. Both are expected here: the component removes the chart root before
the asynchronous delete, and a surface can be deleted twice (the nested overview). The flag
is only set when the core exposes it, so this is inert against scichart 6.0.1 and takes
effect with the core release that adds it.
Deprecated
TChartComponentProps— useTChartComponentPropsWithInitorTChartComponentPropsWithConfig.