RE

Responsive

@visx/responsive

visx responsive svg

Charts
visx
react
d3
visualizations
charts
@visx/responsive
javascript
npm
frontend
open source
Stars
1
Weekly
0
Open issues
0
Bundle
~60 kB

Installation

npm install @visx/responsive

Code example

import { Responsive } from "@visx/responsive";

const data = [
  { name: "Jan", value: 12 },
  { name: "Feb", value: 18 },
];

export function Example() {
  return (
    <Responsive data={data} width={420} height={240}>
      {/* series / axes from Responsive */}
    </Responsive>
  );
}

Pros & cons

Pros

  • Actively maintained by @hshoff
  • 0 weekly downloads. Battle tested
  • First-class TypeScript definitions
  • MIT licensed

Considerations

  • Adds roughly ~60 kB to your bundle
  • Needs client-only rendering in SSR frameworks
  • Not supported in React Native
  • 0 open issues on GitHub

FAQs

Alternatives & similar libraries