diff --git a/Assets/XCharts/Editor/ChildComponents/ComponentThemeDrawer.cs b/Assets/XCharts/Editor/ChildComponents/ComponentThemeDrawer.cs
index dff8e12f..15264b71 100644
--- a/Assets/XCharts/Editor/ChildComponents/ComponentThemeDrawer.cs
+++ b/Assets/XCharts/Editor/ChildComponents/ComponentThemeDrawer.cs
@@ -139,6 +139,8 @@ namespace XCharts
protected override void DrawExtendeds(SerializedProperty prop)
{
base.DrawExtendeds(prop);
+ PropertyField(prop, "m_BorderWidth");
+ PropertyField(prop, "m_BorderColor");
PropertyField(prop, "m_LineType");
PropertyField(prop, "m_LineWidth");
PropertyField(prop, "m_LineColor");
diff --git a/Assets/XCharts/Editor/ChildComponents/ItemStyleDrawer.cs b/Assets/XCharts/Editor/ChildComponents/ItemStyleDrawer.cs
index 0d986c84..40b95701 100644
--- a/Assets/XCharts/Editor/ChildComponents/ItemStyleDrawer.cs
+++ b/Assets/XCharts/Editor/ChildComponents/ItemStyleDrawer.cs
@@ -34,7 +34,8 @@ namespace XCharts
PropertyField(prop, "m_BorderColor0");
PropertyField(prop, "m_BorderToColor");
PropertyField(prop, "m_Opacity");
- PropertyField(prop, "m_TooltipFormatter");
+ PropertyField(prop, "m_ItemMarker");
+ PropertyField(prop, "m_ItemFormatter");
PropertyField(prop, "m_NumericFormatter");
PropertyListField(prop, "m_CornerRadius", true);
--EditorGUI.indentLevel;
diff --git a/Assets/XCharts/Editor/ChildComponents/TextStyleDrawer.cs b/Assets/XCharts/Editor/ChildComponents/TextStyleDrawer.cs
index ed76b6ae..5c092c45 100644
--- a/Assets/XCharts/Editor/ChildComponents/TextStyleDrawer.cs
+++ b/Assets/XCharts/Editor/ChildComponents/TextStyleDrawer.cs
@@ -30,6 +30,7 @@ namespace XCharts
#endif
PropertyField(prop, "m_Rotate");
PropertyField(prop, "m_Offset");
+ PropertyField(prop, "m_ExtraWidth");
PropertyField(prop, "m_Color");
PropertyField(prop, "m_BackgroundColor");
PropertyField(prop, "m_FontSize");
diff --git a/Assets/XCharts/Editor/MainComponents/MainComponentBaseEditor.cs b/Assets/XCharts/Editor/MainComponents/MainComponentBaseEditor.cs
index 1e28b602..98fb6174 100644
--- a/Assets/XCharts/Editor/MainComponents/MainComponentBaseEditor.cs
+++ b/Assets/XCharts/Editor/MainComponents/MainComponentBaseEditor.cs
@@ -15,6 +15,8 @@ namespace XCharts
{
public class MainComponentBaseEditor
{
+ protected const string MORE = "More";
+ protected bool m_MoreFoldout = false;
internal BaseChart chart { get; private set; }
internal MainComponent component { get; private set; }
@@ -84,6 +86,15 @@ namespace XCharts
}
}
+ protected void PropertyFiledMore(System.Action action)
+ {
+ m_MoreFoldout = ChartEditorHelper.DrawHeader(MORE, m_MoreFoldout, false, null, null);
+ if (m_MoreFoldout)
+ {
+ if (action != null) action();
+ }
+ }
+
protected void PropertyField(SerializedProperty property)
{
Assert.IsNotNull(property);
diff --git a/Assets/XCharts/Editor/MainComponents/TooltipEditor.cs b/Assets/XCharts/Editor/MainComponents/TooltipEditor.cs
index 1b9f8c93..deb6dcf2 100644
--- a/Assets/XCharts/Editor/MainComponents/TooltipEditor.cs
+++ b/Assets/XCharts/Editor/MainComponents/TooltipEditor.cs
@@ -18,21 +18,36 @@ namespace XCharts
++EditorGUI.indentLevel;
PropertyField("m_Type");
PropertyField("m_Trigger");
- PropertyField("m_Formatter");
+ PropertyField("m_AlwayShow");
PropertyField("m_TitleFormatter");
PropertyField("m_ItemFormatter");
PropertyField("m_NumericFormatter");
- PropertyField("m_FixedWidth");
- PropertyField("m_FixedHeight");
- PropertyField("m_MinWidth");
- PropertyField("m_MinHeight");
- PropertyField("m_PaddingLeftRight");
- PropertyField("m_PaddingTopBottom");
- PropertyField("m_BackgroundImage");
- PropertyField("m_IgnoreDataDefaultContent");
- PropertyField("m_Offset");
+ PropertyField("m_TitleHeight");
+ PropertyField("m_ItemHeight");
+ PropertyFiledMore(() =>
+ {
+ PropertyField("m_Marker");
+ PropertyField("m_BorderWidth");
+ PropertyField("m_BorderColor");
+ PropertyField("m_PaddingLeftRight");
+ PropertyField("m_PaddingTopBottom");
+ PropertyField("m_BackgroundImage");
+ PropertyField("m_BackgroundColor");
+ PropertyField("m_FixedWidth");
+ PropertyField("m_FixedHeight");
+ PropertyField("m_MinWidth");
+ PropertyField("m_MinHeight");
+ PropertyField("m_IgnoreDataDefaultContent");
+ PropertyField("m_Offset");
+ PropertyField("m_FixedXEnable");
+ PropertyField("m_FixedX");
+ PropertyField("m_FixedYEnable");
+ PropertyField("m_FixedY");
+ });
PropertyField("m_LineStyle");
- PropertyField("m_TextStyle");
+ PropertyField("m_LabelTextStyle");
+ PropertyField("m_TitleTextStyle");
+ PropertyListField("m_ColumnsTextStyle");
--EditorGUI.indentLevel;
}
}
diff --git a/Assets/XCharts/Resources/XCTheme-Dark.asset b/Assets/XCharts/Resources/XCTheme-Dark.asset
index 59375939..a9ac1239 100644
--- a/Assets/XCharts/Resources/XCTheme-Dark.asset
+++ b/Assets/XCharts/Resources/XCTheme-Dark.asset
@@ -132,9 +132,9 @@ MonoBehaviour:
rgba: 4281415106
m_Tooltip:
m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
- m_TextColor: {r: 1, g: 1, b: 1, a: 1}
+ m_TextColor: {r: 0, g: 0, b: 0, a: 1}
m_TextBackgroundColor: {r: 0.31764707, g: 0.31764707, b: 0.31764707, a: 0.78431374}
- m_FontSize: 20
+ m_FontSize: 22
m_LineType: 0
m_LineWidth: 0.8
m_LineColor:
diff --git a/Assets/XCharts/Resources/XCTheme-Default.asset b/Assets/XCharts/Resources/XCTheme-Default.asset
index 802380d2..734e4343 100644
--- a/Assets/XCharts/Resources/XCTheme-Default.asset
+++ b/Assets/XCharts/Resources/XCTheme-Default.asset
@@ -132,9 +132,9 @@ MonoBehaviour:
rgba: 4281415106
m_Tooltip:
m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
- m_TextColor: {r: 1, g: 1, b: 1, a: 1}
- m_TextBackgroundColor: {r: 0.31764707, g: 0.31764707, b: 0.31764707, a: 0.78431374}
- m_FontSize: 20
+ m_TextColor: {r: 0, g: 0, b: 0, a: 1}
+ m_TextBackgroundColor: {r: 1, g: 1, b: 1, a: 1}
+ m_FontSize: 22
m_LineType: 0
m_LineWidth: 0.8
m_LineColor:
diff --git a/Assets/XCharts/Resources/XCTheme-Test1.asset b/Assets/XCharts/Resources/XCTheme-Test1.asset
deleted file mode 100644
index da2c21fe..00000000
--- a/Assets/XCharts/Resources/XCTheme-Test1.asset
+++ /dev/null
@@ -1,207 +0,0 @@
-%YAML 1.1
-%TAG !u! tag:unity3d.com,2011:
---- !u!114 &11400000
-MonoBehaviour:
- m_ObjectHideFlags: 0
- m_PrefabParentObject: {fileID: 0}
- m_PrefabInternal: {fileID: 0}
- m_GameObject: {fileID: 0}
- m_Enabled: 1
- m_EditorHideFlags: 0
- m_Script: {fileID: 11500000, guid: 6c59330ca0f4443b69f06b890a44f32e, type: 3}
- m_Name: XCTheme-Test1
- m_EditorClassIdentifier:
- m_ThemeType: 3
- m_ThemeName: Test1
- m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
- m_ContrastColor:
- serializedVersion: 2
- rgba: 0
- m_BackgroundColor:
- serializedVersion: 2
- rgba: 4292006610
- m_ColorPalette:
- - serializedVersion: 2
- rgba: 4294939209
- - serializedVersion: 2
- rgba: 4289920892
- - serializedVersion: 2
- rgba: 4284538365
- - serializedVersion: 2
- rgba: 4285951743
- - serializedVersion: 2
- rgba: 4294564184
- - serializedVersion: 2
- rgba: 4287741957
- - serializedVersion: 2
- rgba: 4282747647
- - serializedVersion: 2
- rgba: 4293085325
- - serializedVersion: 2
- rgba: 4294932957
- m_Common:
- m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
- m_TextColor: {r: 0.7254902, g: 0.72156864, b: 0.80784315, a: 1}
- m_TextBackgroundColor: {r: 0, g: 0, b: 0, a: 0}
- m_FontSize: 20
- m_Title:
- m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
- m_TextColor: {r: 0.93333334, g: 0.94509804, b: 0.98039216, a: 1}
- m_TextBackgroundColor: {r: 0, g: 0, b: 0, a: 0}
- m_FontSize: 24
- m_SubTitle:
- m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
- m_TextColor: {r: 0.7254902, g: 0.72156864, b: 0.80784315, a: 1}
- m_TextBackgroundColor: {r: 0, g: 0, b: 0, a: 0}
- m_FontSize: 22
- m_Legend:
- m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
- m_TextColor: {r: 0.7254902, g: 0.72156864, b: 0.80784315, a: 1}
- m_TextBackgroundColor: {r: 0, g: 0, b: 0, a: 0}
- m_FontSize: 20
- m_UnableColor: {r: 0.8, g: 0.8, b: 0.8, a: 1}
- m_Axis:
- m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
- m_TextColor: {r: 0.7254902, g: 0.72156864, b: 0.80784315, a: 1}
- m_TextBackgroundColor: {r: 0, g: 0, b: 0, a: 0}
- m_FontSize: 18
- m_LineType: 0
- m_LineWidth: 0.8
- m_LineLength: 0
- m_LineColor:
- serializedVersion: 2
- rgba: 4291737785
- m_SplitLineType: 0
- m_SplitLineWidth: 0.8
- m_SplitLineLength: 0
- m_SplitLineColor:
- serializedVersion: 2
- rgba: 4283647816
- m_TickWidth: 0.8
- m_TickLength: 5
- m_TickColor:
- serializedVersion: 2
- rgba: 4291737785
- m_SplitAreaColors:
- - serializedVersion: 2
- rgba: 100663295
- - serializedVersion: 2
- rgba: 218103807
- m_Gauge:
- m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
- m_TextColor: {r: 0.7254902, g: 0.72156864, b: 0.80784315, a: 1}
- m_TextBackgroundColor: {r: 0, g: 0, b: 0, a: 0}
- m_FontSize: 18
- m_LineType: 0
- m_LineWidth: 15
- m_LineLength: 0
- m_LineColor:
- serializedVersion: 2
- rgba: 4291737785
- m_SplitLineType: 0
- m_SplitLineWidth: 0.8
- m_SplitLineLength: 15
- m_SplitLineColor:
- serializedVersion: 2
- rgba: 4294967295
- m_TickWidth: 0.8
- m_TickLength: 5
- m_TickColor:
- serializedVersion: 2
- rgba: 4294967295
- m_SplitAreaColors:
- - serializedVersion: 2
- rgba: 100663295
- - serializedVersion: 2
- rgba: 218103807
- m_BarBackgroundColor:
- serializedVersion: 2
- rgba: 4291348680
- m_StageColor:
- - m_Percent: 0.2
- m_Color:
- serializedVersion: 2
- rgba: 4289644433
- - m_Percent: 0.8
- m_Color:
- serializedVersion: 2
- rgba: 4288579171
- - m_Percent: 1
- m_Color:
- serializedVersion: 2
- rgba: 4281415106
- m_Tooltip:
- m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
- m_TextColor: {r: 1, g: 1, b: 1, a: 1}
- m_TextBackgroundColor: {r: 0.31764707, g: 0.31764707, b: 0.31764707, a: 0.78431374}
- m_FontSize: 20
- m_LineType: 0
- m_LineWidth: 0.8
- m_LineColor:
- serializedVersion: 2
- rgba: 4293848814
- m_AreaColor:
- serializedVersion: 2
- rgba: 542200145
- m_LabelTextColor:
- serializedVersion: 2
- rgba: 4294967295
- m_LabelBackgroundColor:
- serializedVersion: 2
- rgba: 4289177511
- m_DataZoom:
- m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
- m_TextColor: {r: 0.7254902, g: 0.72156864, b: 0.80784315, a: 1}
- m_TextBackgroundColor: {r: 0, g: 0, b: 0, a: 0}
- m_FontSize: 20
- m_BorderWidth: 0.5
- m_DataLineWidth: 0.5
- m_FillerColor:
- serializedVersion: 2
- rgba: 869180295
- m_BorderColor:
- serializedVersion: 2
- rgba: 4287262833
- m_DataLineColor:
- serializedVersion: 2
- rgba: 4287262833
- m_DataAreaColor:
- serializedVersion: 2
- rgba: 4287262833
- m_BackgroundColor:
- serializedVersion: 2
- rgba: 0
- m_VisualMap:
- m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
- m_TextColor: {r: 0.7254902, g: 0.72156864, b: 0.80784315, a: 1}
- m_TextBackgroundColor: {r: 0, g: 0, b: 0, a: 0}
- m_FontSize: 18
- m_BorderWidth: 0
- m_BorderColor:
- serializedVersion: 2
- rgba: 4291611852
- m_BackgroundColor:
- serializedVersion: 2
- rgba: 0
- m_TriangeLen: 20
- m_Serie:
- m_LineWidth: 1.8
- m_LineSymbolSize: 4
- m_LineSymbolSelectedSize: 8
- m_ScatterSymbolSize: 20
- m_ScatterSymbolSelectedSize: 30
- m_PieTooltipExtraRadius: 8
- m_PieSelectedOffset: 8
- m_CandlestickColor:
- serializedVersion: 2
- rgba: 4281415106
- m_CandlestickColor0:
- serializedVersion: 2
- rgba: 4283844145
- m_CandlestickBorderWidth: 1
- m_CandlestickBorderColor:
- serializedVersion: 2
- rgba: 4281415106
- m_CandlestickBorderColor0:
- serializedVersion: 2
- rgba: 4283844145
diff --git a/Assets/XCharts/Resources/XCTheme-Test1.asset.meta b/Assets/XCharts/Resources/XCTheme-Test1.asset.meta
deleted file mode 100644
index 32e9acf3..00000000
--- a/Assets/XCharts/Resources/XCTheme-Test1.asset.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: 22c71b519a1e34731aee339407499441
-NativeFormatImporter:
- externalObjects: {}
- mainObjectFileID: 11400000
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/XCharts/Resources/XCTheme-Test2.asset b/Assets/XCharts/Resources/XCTheme-Test2.asset
deleted file mode 100644
index 5ab00986..00000000
--- a/Assets/XCharts/Resources/XCTheme-Test2.asset
+++ /dev/null
@@ -1,207 +0,0 @@
-%YAML 1.1
-%TAG !u! tag:unity3d.com,2011:
---- !u!114 &11400000
-MonoBehaviour:
- m_ObjectHideFlags: 0
- m_PrefabParentObject: {fileID: 0}
- m_PrefabInternal: {fileID: 0}
- m_GameObject: {fileID: 0}
- m_Enabled: 1
- m_EditorHideFlags: 0
- m_Script: {fileID: 11500000, guid: 6c59330ca0f4443b69f06b890a44f32e, type: 3}
- m_Name: XCTheme-Test2
- m_EditorClassIdentifier:
- m_ThemeType: 3
- m_ThemeName: Test2
- m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
- m_ContrastColor:
- serializedVersion: 2
- rgba: 0
- m_BackgroundColor:
- serializedVersion: 2
- rgba: 3725761966
- m_ColorPalette:
- - serializedVersion: 2
- rgba: 4294939209
- - serializedVersion: 2
- rgba: 4289920892
- - serializedVersion: 2
- rgba: 4284538365
- - serializedVersion: 2
- rgba: 4285951743
- - serializedVersion: 2
- rgba: 4294564184
- - serializedVersion: 2
- rgba: 4287741957
- - serializedVersion: 2
- rgba: 4282747647
- - serializedVersion: 2
- rgba: 4293085325
- - serializedVersion: 2
- rgba: 4294932957
- m_Common:
- m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
- m_TextColor: {r: 0.7254902, g: 0.72156864, b: 0.80784315, a: 1}
- m_TextBackgroundColor: {r: 0, g: 0, b: 0, a: 0}
- m_FontSize: 20
- m_Title:
- m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
- m_TextColor: {r: 0.93333334, g: 0.94509804, b: 0.98039216, a: 1}
- m_TextBackgroundColor: {r: 0, g: 0, b: 0, a: 0}
- m_FontSize: 24
- m_SubTitle:
- m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
- m_TextColor: {r: 0.7254902, g: 0.72156864, b: 0.80784315, a: 1}
- m_TextBackgroundColor: {r: 0, g: 0, b: 0, a: 0}
- m_FontSize: 22
- m_Legend:
- m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
- m_TextColor: {r: 0.7254902, g: 0.72156864, b: 0.80784315, a: 1}
- m_TextBackgroundColor: {r: 0, g: 0, b: 0, a: 0}
- m_FontSize: 20
- m_UnableColor: {r: 0.8, g: 0.8, b: 0.8, a: 1}
- m_Axis:
- m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
- m_TextColor: {r: 0.7254902, g: 0.72156864, b: 0.80784315, a: 1}
- m_TextBackgroundColor: {r: 0, g: 0, b: 0, a: 0}
- m_FontSize: 18
- m_LineType: 0
- m_LineWidth: 0.8
- m_LineLength: 0
- m_LineColor:
- serializedVersion: 2
- rgba: 4291737785
- m_SplitLineType: 0
- m_SplitLineWidth: 0.8
- m_SplitLineLength: 0
- m_SplitLineColor:
- serializedVersion: 2
- rgba: 4283647816
- m_TickWidth: 0.8
- m_TickLength: 5
- m_TickColor:
- serializedVersion: 2
- rgba: 4291737785
- m_SplitAreaColors:
- - serializedVersion: 2
- rgba: 100663295
- - serializedVersion: 2
- rgba: 218103807
- m_Gauge:
- m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
- m_TextColor: {r: 0.7254902, g: 0.72156864, b: 0.80784315, a: 1}
- m_TextBackgroundColor: {r: 0, g: 0, b: 0, a: 0}
- m_FontSize: 18
- m_LineType: 0
- m_LineWidth: 15
- m_LineLength: 0
- m_LineColor:
- serializedVersion: 2
- rgba: 4291737785
- m_SplitLineType: 0
- m_SplitLineWidth: 0.8
- m_SplitLineLength: 15
- m_SplitLineColor:
- serializedVersion: 2
- rgba: 4294967295
- m_TickWidth: 0.8
- m_TickLength: 5
- m_TickColor:
- serializedVersion: 2
- rgba: 4294967295
- m_SplitAreaColors:
- - serializedVersion: 2
- rgba: 100663295
- - serializedVersion: 2
- rgba: 218103807
- m_BarBackgroundColor:
- serializedVersion: 2
- rgba: 4291348680
- m_StageColor:
- - m_Percent: 0.2
- m_Color:
- serializedVersion: 2
- rgba: 4289644433
- - m_Percent: 0.8
- m_Color:
- serializedVersion: 2
- rgba: 4288579171
- - m_Percent: 1
- m_Color:
- serializedVersion: 2
- rgba: 4281415106
- m_Tooltip:
- m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
- m_TextColor: {r: 1, g: 1, b: 1, a: 1}
- m_TextBackgroundColor: {r: 0.31764707, g: 0.31764707, b: 0.31764707, a: 0.78431374}
- m_FontSize: 20
- m_LineType: 0
- m_LineWidth: 0.8
- m_LineColor:
- serializedVersion: 2
- rgba: 4293848814
- m_AreaColor:
- serializedVersion: 2
- rgba: 542200145
- m_LabelTextColor:
- serializedVersion: 2
- rgba: 4294967295
- m_LabelBackgroundColor:
- serializedVersion: 2
- rgba: 4289177511
- m_DataZoom:
- m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
- m_TextColor: {r: 0.7254902, g: 0.72156864, b: 0.80784315, a: 1}
- m_TextBackgroundColor: {r: 0, g: 0, b: 0, a: 0}
- m_FontSize: 20
- m_BorderWidth: 0.5
- m_DataLineWidth: 0.5
- m_FillerColor:
- serializedVersion: 2
- rgba: 869180295
- m_BorderColor:
- serializedVersion: 2
- rgba: 4287262833
- m_DataLineColor:
- serializedVersion: 2
- rgba: 4287262833
- m_DataAreaColor:
- serializedVersion: 2
- rgba: 4287262833
- m_BackgroundColor:
- serializedVersion: 2
- rgba: 0
- m_VisualMap:
- m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
- m_TextColor: {r: 0.7254902, g: 0.72156864, b: 0.80784315, a: 1}
- m_TextBackgroundColor: {r: 0, g: 0, b: 0, a: 0}
- m_FontSize: 18
- m_BorderWidth: 0
- m_BorderColor:
- serializedVersion: 2
- rgba: 4291611852
- m_BackgroundColor:
- serializedVersion: 2
- rgba: 0
- m_TriangeLen: 20
- m_Serie:
- m_LineWidth: 1.8
- m_LineSymbolSize: 4
- m_LineSymbolSelectedSize: 8
- m_ScatterSymbolSize: 20
- m_ScatterSymbolSelectedSize: 30
- m_PieTooltipExtraRadius: 8
- m_PieSelectedOffset: 8
- m_CandlestickColor:
- serializedVersion: 2
- rgba: 4281415106
- m_CandlestickColor0:
- serializedVersion: 2
- rgba: 4283844145
- m_CandlestickBorderWidth: 1
- m_CandlestickBorderColor:
- serializedVersion: 2
- rgba: 4281415106
- m_CandlestickBorderColor0:
- serializedVersion: 2
- rgba: 4283844145
diff --git a/Assets/XCharts/Resources/XCTheme-Test2.asset.meta b/Assets/XCharts/Resources/XCTheme-Test2.asset.meta
deleted file mode 100644
index d81948ed..00000000
--- a/Assets/XCharts/Resources/XCTheme-Test2.asset.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: 675c10db67ba545eb8a55e10f9ed5668
-NativeFormatImporter:
- externalObjects: {}
- mainObjectFileID: 11400000
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/XCharts/Resources/XCTheme-Test3.asset b/Assets/XCharts/Resources/XCTheme-Test3.asset
deleted file mode 100644
index 34c663da..00000000
--- a/Assets/XCharts/Resources/XCTheme-Test3.asset
+++ /dev/null
@@ -1,207 +0,0 @@
-%YAML 1.1
-%TAG !u! tag:unity3d.com,2011:
---- !u!114 &11400000
-MonoBehaviour:
- m_ObjectHideFlags: 0
- m_PrefabParentObject: {fileID: 0}
- m_PrefabInternal: {fileID: 0}
- m_GameObject: {fileID: 0}
- m_Enabled: 1
- m_EditorHideFlags: 0
- m_Script: {fileID: 11500000, guid: 6c59330ca0f4443b69f06b890a44f32e, type: 3}
- m_Name: XCTheme-Test3
- m_EditorClassIdentifier:
- m_ThemeType: 3
- m_ThemeName: Test3
- m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
- m_ContrastColor:
- serializedVersion: 2
- rgba: 0
- m_BackgroundColor:
- serializedVersion: 2
- rgba: 4280006363
- m_ColorPalette:
- - serializedVersion: 2
- rgba: 4294939209
- - serializedVersion: 2
- rgba: 4289920892
- - serializedVersion: 2
- rgba: 4284538365
- - serializedVersion: 2
- rgba: 4285951743
- - serializedVersion: 2
- rgba: 4294564184
- - serializedVersion: 2
- rgba: 4287741957
- - serializedVersion: 2
- rgba: 4282747647
- - serializedVersion: 2
- rgba: 4293085325
- - serializedVersion: 2
- rgba: 4294932957
- m_Common:
- m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
- m_TextColor: {r: 0.7254902, g: 0.72156864, b: 0.80784315, a: 1}
- m_TextBackgroundColor: {r: 0, g: 0, b: 0, a: 0}
- m_FontSize: 20
- m_Title:
- m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
- m_TextColor: {r: 0.93333334, g: 0.94509804, b: 0.98039216, a: 1}
- m_TextBackgroundColor: {r: 0, g: 0, b: 0, a: 0}
- m_FontSize: 24
- m_SubTitle:
- m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
- m_TextColor: {r: 0.7254902, g: 0.72156864, b: 0.80784315, a: 1}
- m_TextBackgroundColor: {r: 0, g: 0, b: 0, a: 0}
- m_FontSize: 22
- m_Legend:
- m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
- m_TextColor: {r: 0.7254902, g: 0.72156864, b: 0.80784315, a: 1}
- m_TextBackgroundColor: {r: 0, g: 0, b: 0, a: 0}
- m_FontSize: 20
- m_UnableColor: {r: 0.8, g: 0.8, b: 0.8, a: 1}
- m_Axis:
- m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
- m_TextColor: {r: 0.7254902, g: 0.72156864, b: 0.80784315, a: 1}
- m_TextBackgroundColor: {r: 0, g: 0, b: 0, a: 0}
- m_FontSize: 18
- m_LineType: 0
- m_LineWidth: 0.8
- m_LineLength: 0
- m_LineColor:
- serializedVersion: 2
- rgba: 4291737785
- m_SplitLineType: 0
- m_SplitLineWidth: 0.8
- m_SplitLineLength: 0
- m_SplitLineColor:
- serializedVersion: 2
- rgba: 4283647816
- m_TickWidth: 0.8
- m_TickLength: 5
- m_TickColor:
- serializedVersion: 2
- rgba: 4291737785
- m_SplitAreaColors:
- - serializedVersion: 2
- rgba: 100663295
- - serializedVersion: 2
- rgba: 218103807
- m_Gauge:
- m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
- m_TextColor: {r: 0.7254902, g: 0.72156864, b: 0.80784315, a: 1}
- m_TextBackgroundColor: {r: 0, g: 0, b: 0, a: 0}
- m_FontSize: 18
- m_LineType: 0
- m_LineWidth: 15
- m_LineLength: 0
- m_LineColor:
- serializedVersion: 2
- rgba: 4291737785
- m_SplitLineType: 0
- m_SplitLineWidth: 0.8
- m_SplitLineLength: 15
- m_SplitLineColor:
- serializedVersion: 2
- rgba: 4294967295
- m_TickWidth: 0.8
- m_TickLength: 5
- m_TickColor:
- serializedVersion: 2
- rgba: 4294967295
- m_SplitAreaColors:
- - serializedVersion: 2
- rgba: 100663295
- - serializedVersion: 2
- rgba: 218103807
- m_BarBackgroundColor:
- serializedVersion: 2
- rgba: 4291348680
- m_StageColor:
- - m_Percent: 0.2
- m_Color:
- serializedVersion: 2
- rgba: 4289644433
- - m_Percent: 0.8
- m_Color:
- serializedVersion: 2
- rgba: 4288579171
- - m_Percent: 1
- m_Color:
- serializedVersion: 2
- rgba: 4281415106
- m_Tooltip:
- m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
- m_TextColor: {r: 1, g: 1, b: 1, a: 1}
- m_TextBackgroundColor: {r: 0.31764707, g: 0.31764707, b: 0.31764707, a: 0.78431374}
- m_FontSize: 20
- m_LineType: 0
- m_LineWidth: 0.8
- m_LineColor:
- serializedVersion: 2
- rgba: 4293848814
- m_AreaColor:
- serializedVersion: 2
- rgba: 542200145
- m_LabelTextColor:
- serializedVersion: 2
- rgba: 4294967295
- m_LabelBackgroundColor:
- serializedVersion: 2
- rgba: 4289177511
- m_DataZoom:
- m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
- m_TextColor: {r: 0.7254902, g: 0.72156864, b: 0.80784315, a: 1}
- m_TextBackgroundColor: {r: 0, g: 0, b: 0, a: 0}
- m_FontSize: 20
- m_BorderWidth: 0.5
- m_DataLineWidth: 0.5
- m_FillerColor:
- serializedVersion: 2
- rgba: 869180295
- m_BorderColor:
- serializedVersion: 2
- rgba: 4287262833
- m_DataLineColor:
- serializedVersion: 2
- rgba: 4287262833
- m_DataAreaColor:
- serializedVersion: 2
- rgba: 4287262833
- m_BackgroundColor:
- serializedVersion: 2
- rgba: 0
- m_VisualMap:
- m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
- m_TextColor: {r: 0.7254902, g: 0.72156864, b: 0.80784315, a: 1}
- m_TextBackgroundColor: {r: 0, g: 0, b: 0, a: 0}
- m_FontSize: 18
- m_BorderWidth: 0
- m_BorderColor:
- serializedVersion: 2
- rgba: 4291611852
- m_BackgroundColor:
- serializedVersion: 2
- rgba: 0
- m_TriangeLen: 20
- m_Serie:
- m_LineWidth: 1.8
- m_LineSymbolSize: 4
- m_LineSymbolSelectedSize: 8
- m_ScatterSymbolSize: 20
- m_ScatterSymbolSelectedSize: 30
- m_PieTooltipExtraRadius: 8
- m_PieSelectedOffset: 8
- m_CandlestickColor:
- serializedVersion: 2
- rgba: 4281415106
- m_CandlestickColor0:
- serializedVersion: 2
- rgba: 4283844145
- m_CandlestickBorderWidth: 1
- m_CandlestickBorderColor:
- serializedVersion: 2
- rgba: 4281415106
- m_CandlestickBorderColor0:
- serializedVersion: 2
- rgba: 4283844145
diff --git a/Assets/XCharts/Resources/XCTheme-Test3.asset.meta b/Assets/XCharts/Resources/XCTheme-Test3.asset.meta
deleted file mode 100644
index e4074695..00000000
--- a/Assets/XCharts/Resources/XCTheme-Test3.asset.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: 6e2f85adf3fea474b95fcc1f3341c4f6
-NativeFormatImporter:
- externalObjects: {}
- mainObjectFileID: 11400000
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/XCharts/Runtime/Chart/BaseChart_API.cs b/Assets/XCharts/Runtime/Chart/BaseChart_API.cs
index cac45a9c..8c0904eb 100644
--- a/Assets/XCharts/Runtime/Chart/BaseChart_API.cs
+++ b/Assets/XCharts/Runtime/Chart/BaseChart_API.cs
@@ -42,44 +42,11 @@ namespace XCharts
///
public ThemeStyle theme { get { return m_Theme; } set { m_Theme = value; } }
///
- /// The title setting of chart.
- /// 标题组件
- ///
- //public Title title { get { return GetChartComponent
(); } }
- ///
- /// The legend setting of chart.
- /// 图例组件
- ///
- //public Legend legend { get { return m_Legends.Count > 0 ? m_Legends[0] : null; } }
- //public List