xanderdeseyn / react-native-responsive-linechart

A customizable and responsive line or area chart for react-native
https://react-native-responsive-linechart.surge.sh
MIT License
202 stars 46 forks source link

Custom tool tips position #183

Open rnidea2code opened 9 months ago

rnidea2code commented 9 months ago

tooltipComponent={ <Tooltip value={chartData} position={{x: 10, y: 5}} theme={{ label: {fontSize: 12}, shape: {width: 50,height:50}, formatter(value) { return (

{value.y}
              );
              // return `${Number(value.y).toFixed(2)}`;
            },
          }}
        />
      }

I had tried to create my custom component for the tooltips but not able to give position on the custom tooltips box it's take fixed position so please give me suggestion for that how can i set my tooltips on my chart data point