mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-21 16:00:24 +00:00
修复Legend的formatter在设置{d}通配符时显示可能不匹配的问题
This commit is contained in:
@@ -189,7 +189,7 @@ namespace XCharts.Runtime
|
||||
if (isPercent)
|
||||
{
|
||||
var total = serie.GetDataTotal(dimensionIndex, serie.GetSerieData(bIndex));
|
||||
var percent = total == 0 ? 0 : value / serie.yTotal * 100;
|
||||
var percent = total == 0 ? 0 : value / total * 100;
|
||||
content = content.Replace(old, ChartCached.FloatToStr(percent, numericFormatter));
|
||||
}
|
||||
else if (isTotal)
|
||||
|
||||
Reference in New Issue
Block a user