-
Notifications
You must be signed in to change notification settings - Fork 113
Open
Labels
Description
Types of parameters 'options' and 'options' are incompatible as soon as import 'highcharts/modules/accessibility' is in the React component.
import {
Legend,
setHighcharts,
Tooltip,
XAxis,
YAxis,
} from '@highcharts/react';
import { ColumnSeries } from '@highcharts/react/series/Column';
import Highcharts from 'highcharts/highcharts';
import 'highcharts/modules/accessibility';
import 'highcharts/modules/broken-axis';
setHighcharts(Highcharts);
const chartOptions: Options = {
credits: { enabled: false },
...(title && { title: { text: title, ...titleProps } }),
...(subtitle && { subtitle: { text: subtitle, ...subtitleProps } }),
};
return <Chart options={chartOptions}>{children}</Chart>;
package.json dependencies
"devDependencies": {
"@biomejs/biome": "2.3.8",
"@highcharts/react": "^4.1.0",
"@instructure/ui": "^10.26.4",
"@rsbuild/core": "~1.6.14",
"@rsbuild/plugin-react": "^1.4.2",
"@rslib/core": "^0.18.4",
"@storybook/addon-a11y": "^10.1.4",
"@storybook/addon-docs": "^10.1.4",
"@storybook/addon-onboarding": "^10.1.4",
"@storybook/react": "^10.1.4",
"@types/react": "^19.2.7",
"highcharts": "^12.4.0",
"husky": "^9.1.7",
"react": "18.3.1",
"react-dom": "18.3.1",
"storybook": "^10.1.4",
"storybook-addon-rslib": "^3.1.0",
"storybook-react-rsbuild": "^3.1.0",
"typescript": "^5.9.3"
},