Skip to content

Commit

Permalink
Change date format to dd/MM
Browse files Browse the repository at this point in the history
  • Loading branch information
andreped committed Jan 5, 2025
1 parent ddf8a49 commit dc7f878
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/widgets/charts/chart_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ class ChartWidget extends StatelessWidget {
fontSize: 14, // Increased font size
);
final date = DateTime.now().add(Duration(days: value.toInt()));
final formattedDate = DateFormat('MM/dd').format(date);
final formattedDate = DateFormat('dd/MM').format(date);
return SideTitleWidget(
axisSide: meta.axisSide,
space: 8.0, // Increased space to move the labels downwards
Expand Down

0 comments on commit dc7f878

Please sign in to comment.