This is a pretty simple request, I would like to have the option to hide/remove the decimal points:

And while I'm at it, the option to change the tooltip textStyle would be helpful.
Hi buddy
Use getTooltipItems inside the LineTouchTooltipData :
LineChartData(
lineTouchData: LineTouchData(
touchTooltipData: LineTouchTooltipData(
tooltipBgColor: Colors.blueGrey.withOpacity(0.8),
getTooltipItems: (List<LineBarSpot> spots) {
return spots.map((LineBarSpot spot) {
return LineTooltipItem(
spot.y.toInt().toString(), //any text you want to show
const TextStyle(color: Colors.black) //any style you want
);
}).toList();
}
),
)
)
Thank you!
Nope!
Most helpful comment
Hi buddy
Use
getTooltipItemsinside the LineTouchTooltipData :