Skip to content

Commit 8e302bb

Browse files
tamasappsimaNNeo
authored andcommitted
Make bar chart tooltip right aligned
1 parent bf7704e commit 8e302bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/chart/bar_chart/bar_chart_painter.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ class BarChartPainter extends AxisChartPainter<BarChartData> {
394394
/// draw the background rect with rounded radius
395395
// ignore: omit_local_variable_types
396396
Rect rect = Rect.fromLTWH(
397-
barOffset.dx - (tooltipWidth / 2),
397+
barOffset.dx,
398398
tooltipTop,
399399
tooltipWidth,
400400
tooltipHeight,

0 commit comments

Comments
 (0)