react-chart-tooltip

0.1.2 • Public • Published

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
}

/react-chart-tooltip/

    Package Sidebar

    Install

    npm i react-chart-tooltip

    Weekly Downloads

    486

    Version

    0.1.2

    License

    ISC

    Last publish

    Collaborators

    • justqing