Skip to content

Commit

Permalink
correct chart entry sum value decimal places
Browse files Browse the repository at this point in the history
  • Loading branch information
gwalus committed Jun 6, 2024
1 parent c514b1c commit effef5b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ private async Task CalculateExpensesAsync()
entries.Add(new ChartEntry((float)percentValue)
{
Label = category?.Name,
ValueLabel = $"{groupedSum}",
ValueLabel = groupedSum.ToString("0.00"),
Color = SKColor.Parse(category.Color),
ValueLabelColor = SKColor.Parse(category.Color)
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ private async Task CalculateIncomesAsync()
entries.Add(new ChartEntry((float)percentValue)
{
Label = category?.Name,
ValueLabel = $"{groupedSum}",
ValueLabel = groupedSum.ToString("0.00"),
Color = SKColor.Parse(category.Color),
ValueLabelColor = SKColor.Parse(category.Color)
});
Expand Down

0 comments on commit effef5b

Please sign in to comment.