0.1.2 • Published 7 years ago

react-chart-tooltip v0.1.2

Weekly downloads
58
License
ISC
Repository
github
Last release
7 years ago

react-chart-tooltip

react-chart-tooltip

How to use

import ToolTip from 'react-chart-tooltip';

<ToolTip />

RadialBarChart Props

{
  tooltip: {  // default
    show: true,
    formatter: (ringInfo) => {
      return `占比: ${ringInfo.percent*100}%`;
    }
  },
  tooltipStyle: {
    backgroundColor: 'rgba(0,0,0,0.65)',
    ...
  },
  x, // postiton.x
  y, // postiton.y
  info,
  title,
  width, // container width
  height, // container height
}