react-d3-axis-ts
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

npm version Downloads

react-d3-axis-ts

The d3 axis, with some improvements.

  • The style is configurable.
  • The path and lines are now centered on the axis and scale values and use shape-rendering: crispEdges.

Usage

import { Axis } from 'react-d3-axis-ts';

<Axis
  orient='left'
  scale={yScale}
  tickArguments={[10]}
  color='#f99'
  tickSizeInner={width - 40}
  tickSizeOuter={width - 40}
  scaleRev={rev}
/>

Readme

Keywords

Package Sidebar

Install

npm i react-d3-axis-ts

Weekly Downloads

3

Version

1.0.3

License

ISC

Unpacked Size

17 kB

Total Files

5

Last publish

Collaborators

  • ts-web