Skip to content

justQing00/react-chart-tooltip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
}

About

react-chart-tooltip

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published