SC

Scale

@visx/scale

visx scale

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

Installation

npm install @visx/scale

Code example

import { Scale } from "@visx/scale";

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

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

Pros & cons

Pros

  • Actively maintained by vx-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