Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@nivo/bump chart is missing properties #2619

Open
Riekje-Welliba opened this issue Jul 3, 2024 · 4 comments
Open

@nivo/bump chart is missing properties #2619

Riekje-Welliba opened this issue Jul 3, 2024 · 4 comments

Comments

@Riekje-Welliba
Copy link

Describe/explain the bug
After upgrading to version 0.87.0 typescript is throwing following error on ResponsiveBump chart:

Type '{ activeLineWidth: number; activePointBorderWidth: number; activePointSize: number; animate: boolean; axisBottom: { tickRotation: number; }; axisLeft: { legend: string; legendOffset: number; legendPosition: "middle"; tickPadding: number; tickRotation: number; tickSize: number; } | null; ... 13 more ...; theme: Parti...' is missing the following properties from type 'BumpSerieCommonProps<{ x: string; y: number | null; }, { color: string; data: { x: string; y: number | null; }[]; id: string; }>': useMesh, interpolation, xPadding, xOuterPadding, and 20 more.

To Reproduce

Steps to reproduce the behavior:

  1. Use version 0.87.0
  2. Use code from nivo.rocks/bump
  3. See typescript throwing error

Expected behavior
Optional props should not be marked as missing

Additional context
Tested with Typescript versions 4.9.5 and 5.4.5

@Mecker-ctrl
Copy link

seems like a common issue

@souldecode
Copy link

Have same issue, gow I can fix it to not provide all props ?

@puakehaulani
Copy link

currently having a similar issue where v 0.87.0 did not fix all optional props marked as missing and showing up in console warning. mine is on scatterplot.

@MethSarcus
Copy link

Also having this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants