public static Color GetIconColor(Legend legend, int readIndex, ChartTheme theme, Series series, string legendName, bool active) { if (active) { if (legend.itemAutoColor || legend.GetIcon(readIndex) == null) { return(SeriesHelper.GetNameColor(series, readIndex, legendName, theme)); } else { return(Color.white); } } else { return(theme.legend.unableColor); } }
public static Color GetIconColor(BaseChart chart, int readIndex, string legendName, bool active) { if (active) { var legend = chart.legend; if (legend.itemAutoColor || legend.GetIcon(readIndex) == null) { return(SeriesHelper.GetNameColor(chart, readIndex, legendName)); } else { return(Color.white); } } else { return(chart.theme.legend.unableColor); } }