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/swarmplot breaking in 0.81.0 #2309

Closed
daniloab opened this issue Apr 27, 2023 · 1 comment
Closed

@nivo/swarmplot breaking in 0.81.0 #2309

daniloab opened this issue Apr 27, 2023 · 1 comment

Comments

@daniloab
Copy link

I have updated the Nivo to version 0.81.0 and start to break the code previously working

code example

import type { SwarmPlotProps } from '@nivo/swarmplot';
import { ResponsiveSwarmPlot } from '@nivo/swarmplot';

export type NivoBarProps = {
  data: Record<string, unknown>[];
  keys: string[];
  indexBy: string;
} & SwarmPlotProps;

const SwarmplotChart = (props: NivoBarProps) => {
  return (
    <ResponsiveSwarmPlot
      borderWidth={1}
      borderColor={{ from: 'color', modifiers: [['darker', 1.6]] }}
      margin={{
        top: 40,
        right: 40,
        bottom: 40,
        left: 40,
      }}
      groupBy='group'
      identity='id'
      size={10}
      {...props}
    />
  );
};

export default SwarmplotChart;

Screen Shot 2023-04-27 at 11 05 06

Desktop (please complete the following information):

  • OS: MacOS Monterrey
  • Browser chrome 112
  • Version 112
@plouc
Copy link
Owner

plouc commented Apr 27, 2023

Thank you for taking the time to report this issue. I'm closing this in favor of a more generic issue: #2310.

@plouc plouc closed this as completed Apr 27, 2023
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

2 participants