mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-16 13:30:10 +00:00
删除Serie的MarkColor,增加ItemStyle的MarkColor
This commit is contained in:
@@ -601,13 +601,14 @@ namespace XCharts.Runtime
|
||||
/// <returns></returns>
|
||||
public Color32 GetMarkColor(Serie serie, SerieData serieData)
|
||||
{
|
||||
if (ChartHelper.IsClearColor(serie.markColor))
|
||||
var itemStyle = SerieHelper.GetItemStyle(serie, serieData);
|
||||
if (ChartHelper.IsClearColor(itemStyle.markColor))
|
||||
{
|
||||
return GetItemColor(serie, serieData);
|
||||
}
|
||||
else
|
||||
{
|
||||
return serie.markColor;
|
||||
return itemStyle.markColor;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user