mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-14 20:00:09 +00:00
优化图表细节
This commit is contained in:
@@ -179,7 +179,7 @@ namespace XCharts.Runtime
|
||||
{
|
||||
var outsideRaidus = totalWidth + radiusAxis.splitLine.GetWidth(chart.theme.axis.splitLineWidth) * 2;
|
||||
var splitLineColor = radiusAxis.splitLine.GetColor(chart.theme.axis.splitLineColor);
|
||||
UGL.DrawDoughnut(vh, cenPos, totalWidth, outsideRaidus, splitLineColor, Color.clear);
|
||||
UGL.DrawDoughnut(vh, cenPos, totalWidth, outsideRaidus, splitLineColor, ColorUtil.clearColor32);
|
||||
}
|
||||
}
|
||||
if (radiusAxis.show && radiusAxis.axisTick.show)
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace XCharts.Runtime
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
[DisallowMultipleComponent]
|
||||
[ComponentHandler(typeof(BackgroundHandler), false)]
|
||||
[ComponentHandler(typeof(BackgroundHandler), false, 0)]
|
||||
public class Background : MainComponent
|
||||
{
|
||||
[SerializeField] private bool m_Show = true;
|
||||
|
||||
@@ -49,7 +49,6 @@ namespace XCharts.Runtime
|
||||
var borderWidth = component.borderStyle.GetRuntimeBorderWidth();
|
||||
var borderColor = component.borderStyle.GetRuntimeBorderColor();
|
||||
var cornerRadius = component.borderStyle.GetRuntimeCornerRadius();
|
||||
|
||||
UGL.DrawRoundRectangleWithBorder(vh, chart.chartRect, backgroundColor, backgroundColor, cornerRadius,
|
||||
borderWidth, borderColor);
|
||||
}
|
||||
|
||||
@@ -17,10 +17,10 @@ namespace XCharts.Runtime
|
||||
{
|
||||
[SerializeField] private bool m_Show = true;
|
||||
[SerializeField][Since("v3.8.0")] private int m_LayoutIndex = -1;
|
||||
[SerializeField] private float m_Left = 0.1f;
|
||||
[SerializeField] private float m_Left = 0.11f;
|
||||
[SerializeField] private float m_Right = 0.08f;
|
||||
[SerializeField] private float m_Top = 0.22f;
|
||||
[SerializeField] private float m_Bottom = 0.12f;
|
||||
[SerializeField] private float m_Bottom = 0.14f;
|
||||
[SerializeField] private Color32 m_BackgroundColor;
|
||||
[SerializeField] private bool m_ShowBorder = false;
|
||||
[SerializeField] private float m_BorderWidth = 0f;
|
||||
|
||||
@@ -13,8 +13,8 @@ namespace XCharts.Runtime
|
||||
public class PolarCoord : CoordSystem, ISerieContainer
|
||||
{
|
||||
[SerializeField] private bool m_Show = true;
|
||||
[SerializeField] private float[] m_Center = new float[2] { 0.5f, 0.45f };
|
||||
[SerializeField] private float[] m_Radius = new float[2] { 0, 0.35f };
|
||||
[SerializeField] private float[] m_Center = new float[2] { 0.5f, 0.44f };
|
||||
[SerializeField] private float[] m_Radius = new float[2] { 0, 0.31f };
|
||||
[SerializeField] private Color m_BackgroundColor;
|
||||
[SerializeField][Since("v3.8.0")] private float m_IndicatorLabelOffset = 30f;
|
||||
|
||||
|
||||
@@ -49,7 +49,7 @@ namespace XCharts.Runtime
|
||||
{
|
||||
var serie = chart.AddSerie<Heatmap>(serieName);
|
||||
serie.itemStyle.show = true;
|
||||
serie.itemStyle.borderWidth = 1;
|
||||
serie.itemStyle.borderWidth = 2;
|
||||
serie.itemStyle.borderColor = Color.clear;
|
||||
return serie;
|
||||
}
|
||||
|
||||
@@ -29,9 +29,9 @@ namespace XCharts.Runtime
|
||||
public static Serie AddDefaultSerie(BaseChart chart, string serieName)
|
||||
{
|
||||
var serie = chart.AddSerie<Pie>(serieName);
|
||||
chart.AddData(serie.index, 70, "pie1");
|
||||
chart.AddData(serie.index, 20, "pie2");
|
||||
chart.AddData(serie.index, 10, "pie3");
|
||||
chart.AddData(serie.index, Random.Range(10, 100), "pie1");
|
||||
chart.AddData(serie.index, Random.Range(10, 100), "pie2");
|
||||
chart.AddData(serie.index, Random.Range(10, 100), "pie3");
|
||||
return serie;
|
||||
}
|
||||
|
||||
|
||||
@@ -278,7 +278,7 @@ namespace XCharts.Runtime
|
||||
[SerializeField] private bool m_ClickOffset = true;
|
||||
[SerializeField] private RoseType m_RoseType = RoseType.None;
|
||||
[SerializeField] private float m_Gap;
|
||||
[SerializeField] private float[] m_Center = new float[2] { 0.5f, 0.48f };
|
||||
[SerializeField] private float[] m_Center = new float[2] { 0.5f, 0.46f };
|
||||
[SerializeField] private float[] m_Radius = new float[2] { 0, 0.28f };
|
||||
[SerializeField][Since("v3.8.0")] private float m_MinRadius = 0f;
|
||||
[SerializeField][Since("v3.10.0")] private bool m_MinShowLabel = false;
|
||||
|
||||
Reference in New Issue
Block a user