mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-16 05:10:12 +00:00
增加漏斗图基础代码支持
This commit is contained in:
@@ -530,14 +530,14 @@ namespace XCharts
|
||||
}
|
||||
}
|
||||
|
||||
internal virtual void UpdateLegendColor(string legendName, bool active)
|
||||
public virtual void UpdateLegendColor(string legendName, bool active)
|
||||
{
|
||||
var legendIndex = m_LegendRealShowName.IndexOf(legendName);
|
||||
if (legendIndex >= 0)
|
||||
{
|
||||
foreach (var legend in m_Legends)
|
||||
{
|
||||
var iconColor = LegendHelper.GetIconColor(legend, legendIndex, m_Theme, m_Series, legendName, active);
|
||||
var iconColor = LegendHelper.GetIconColor(this, legendIndex, legendName, active);
|
||||
var contentColor = LegendHelper.GetContentColor(legend, m_Theme, active);
|
||||
legend.UpdateButtonColor(legendName, iconColor);
|
||||
legend.UpdateContentColor(legendName, contentColor);
|
||||
@@ -775,6 +775,11 @@ namespace XCharts
|
||||
return null;
|
||||
}
|
||||
|
||||
public virtual bool GetCustomSerieDataNameForColor()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public int GetLegendRealShowNameIndex(string name)
|
||||
{
|
||||
return m_LegendRealShowName.IndexOf(name);
|
||||
|
||||
Reference in New Issue
Block a user