mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-23 17:30:10 +00:00
[feature] 增加Serie的markColor可设置标识颜色用于Legend和Tooltip的展示 (#229)
This commit is contained in:
@@ -106,9 +106,16 @@ namespace XCharts.Runtime
|
||||
break;
|
||||
}
|
||||
}
|
||||
Color32 color, toColor;
|
||||
SerieHelper.GetItemColor(out color, out toColor, destSerie, destSerieData, chart.theme, index, SerieState.Normal);
|
||||
return color;
|
||||
if (ChartHelper.IsClearColor(destSerie.markColor))
|
||||
{
|
||||
Color32 color, toColor;
|
||||
SerieHelper.GetItemColor(out color, out toColor, destSerie, destSerieData, chart.theme, index, SerieState.Normal);
|
||||
return color;
|
||||
}
|
||||
else
|
||||
{
|
||||
return destSerie.markColor;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user