mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-21 07:50:16 +00:00
Fixed {d} formatter error when value is 0
This commit is contained in:
@@ -248,6 +248,8 @@ namespace XCharts
|
||||
{
|
||||
if (total != 0)
|
||||
content = content.Replace(old, ChartCached.FloatToStr(value / total * 100, numericFormatter));
|
||||
else
|
||||
content = content.Replace(old, ChartCached.FloatToStr(0, numericFormatter));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user