mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-23 17:30:10 +00:00
[feature][serie] support the colorBy of serie
This commit is contained in:
@@ -10,7 +10,8 @@ namespace XCharts.Runtime
|
||||
{
|
||||
public virtual bool vertsDirty { get { return m_VertsDirty; } }
|
||||
public virtual bool componentDirty { get { return m_ComponentDirty; } }
|
||||
public virtual bool useDataNameForColor { get { return false; } }
|
||||
|
||||
public virtual SerieColorBy defaultColorBy { get { return SerieColorBy.Serie; } }
|
||||
public virtual bool titleJustForSerie { get { return false; } }
|
||||
public virtual bool useSortData { get { return false; } }
|
||||
public virtual bool multiDimensionLabel { get { return false; } }
|
||||
@@ -27,6 +28,8 @@ namespace XCharts.Runtime
|
||||
|
||||
public SerieHandler handler { get; set; }
|
||||
|
||||
|
||||
|
||||
public static void ClearVerticesDirty(ChildComponent component)
|
||||
{
|
||||
if (component != null)
|
||||
|
||||
@@ -836,7 +836,7 @@ namespace XCharts.Runtime
|
||||
}
|
||||
}
|
||||
|
||||
public static Color32 GetHighlightColor(Color32 color, float rate = 1.2f)
|
||||
public static Color32 GetHighlightColor(Color32 color, float rate = 0.8f)
|
||||
{
|
||||
var newColor = color;
|
||||
newColor.r = (byte) (color.r * rate);
|
||||
|
||||
Reference in New Issue
Block a user