This commit is contained in:
monitor1394
2022-05-26 21:33:05 +08:00
parent 6ba6a7929d
commit 63166e5cd1
5 changed files with 9 additions and 7 deletions

View File

@@ -800,10 +800,10 @@ namespace XCharts.Runtime
public float GetSerieTotalGap<T>(float categoryWidth, float gap, int index) where T : Serie
{
if (index <= 0) return 0;
float total = 0;
barStackSet.Clear();
var total = 0f;
var count = 0;
var totalRealBarCount = GetSerieBarRealCount<T>();
barStackSet.Clear();
for (int i = 0; i < m_Series.Count; i++)
{
var serie = m_Series[i];