diff --git a/Assets/XCharts/Editor/PropertyDrawers/SerieDrawer.cs b/Assets/XCharts/Editor/PropertyDrawers/SerieDrawer.cs index fbaeccc3..26b7875f 100644 --- a/Assets/XCharts/Editor/PropertyDrawers/SerieDrawer.cs +++ b/Assets/XCharts/Editor/PropertyDrawers/SerieDrawer.cs @@ -446,7 +446,7 @@ namespace XCharts var xWid = dataWid - 4; for (int i = 0; i < dimension; i++) { - while (i >= data.arraySize - 1) + while (i > data.arraySize - 1) { data.InsertArrayElementAtIndex(data.arraySize); }