mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-15 21:00:11 +00:00
serie增加自定义参数
This commit is contained in:
@@ -196,9 +196,9 @@ namespace XCharts
|
||||
/// <param name="type">the type of serie</param>
|
||||
/// <param name="show">whether to show this serie</param>
|
||||
/// <returns>the added serie</returns>
|
||||
public virtual Serie AddSerie(SerieType type, string serieName = null, bool show = true)
|
||||
public virtual Serie AddSerie(SerieType type, string serieName = null, bool show = true, bool addToHead = false)
|
||||
{
|
||||
return m_Series.AddSerie(type, serieName);
|
||||
return m_Series.AddSerie(type, serieName, addToHead);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -209,7 +209,7 @@ namespace XCharts
|
||||
/// <param name="serieName"></param>
|
||||
/// <param name="show"></param>
|
||||
/// <returns></returns>
|
||||
public virtual Serie AddSerie(string serieType, string serieName = null, bool show = true)
|
||||
public virtual Serie AddSerie(string serieType, string serieName = null, bool show = true, bool addToHead = false)
|
||||
{
|
||||
var type = SerieType.Custom;
|
||||
var list = Enum.GetNames(typeof(SerieType));
|
||||
@@ -217,7 +217,7 @@ namespace XCharts
|
||||
{
|
||||
if (t.Equals(serieType)) type = (SerieType)Enum.Parse(typeof(SerieType), t);
|
||||
}
|
||||
return AddSerie(type, serieName, show);
|
||||
return AddSerie(type, serieName, show, addToHead);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -761,6 +761,10 @@ namespace XCharts
|
||||
{
|
||||
return null;
|
||||
}
|
||||
public virtual string[][] GetCustomSerieInspectorCustomFileds()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
public virtual string[] GetCustomChartInspectorShowFileds()
|
||||
{
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user