You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The GetDefaultDataSerialFillColor function in ReoGrid\Chart\Utility.cs will cause exception when the parameter index==defaultDataSerialColors.Count
Below is the code of the GetDefaultDataSerialFillColor function:
public static SolidColor GetDefaultDataSerialFillColor(int index)
{
if (defaultDataSerialColors == null)
{
defaultDataSerialColors = new List<SolidColor>()
{
new SolidColor(91,155,213),
new SolidColor(237,125,49),
new SolidColor(165, 165, 165),
new SolidColor(255,192,0),
new SolidColor(22,191,177),
new SolidColor(165,196,86),
new SolidColor(69,35,163),
new SolidColor(212,98,117),
new SolidColor(241,131,151),
new SolidColor(208,199,6),
new SolidColor(255,50,50),
};
}
if (index >= defaultDataSerialColors.Count)
{
if (index < MaxDataSerials)
{
for (int i = defaultDataSerialColors.Count; i < index; i++)
{
defaultDataSerialColors.Add(SolidColor.Randomly());
}
}
else
{
index = index % MaxDataSerials;
}
}
return defaultDataSerialColors[index];
}
#endregion // Shared Row Colors
The loop for (int i = defaultDataSerialColors.Count; i < index; i++) should change to for (int i = defaultDataSerialColors.Count; i <= index; i++) .
The text was updated successfully, but these errors were encountered:
The GetDefaultDataSerialFillColor function in ReoGrid\Chart\Utility.cs will cause exception when the parameter index==defaultDataSerialColors.Count
Below is the code of the GetDefaultDataSerialFillColor function:
The loop for (int i = defaultDataSerialColors.Count; i < index; i++) should change to for (int i = defaultDataSerialColors.Count; i <= index; i++) .
The text was updated successfully, but these errors were encountered: