发布1.0.0版本

This commit is contained in:
monitor1394
2019-10-23 18:59:34 +08:00
parent a69ab7bf8f
commit 451097c8bc
208 changed files with 253 additions and 65 deletions

35
Runtime/BarChart.cs Normal file
View File

@@ -0,0 +1,35 @@
/******************************************/
/* */
/* Copyright (c) 2018 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/******************************************/
using UnityEngine;
namespace XCharts
{
[AddComponentMenu("XCharts/BarChart", 14)]
[ExecuteInEditMode]
[RequireComponent(typeof(RectTransform))]
[DisallowMultipleComponent]
public class BarChart : CoordinateChart
{
#if UNITY_EDITOR
protected override void Reset()
{
base.Reset();
m_Title.text = "BarChart";
m_Tooltip.type = Tooltip.Type.Shadow;
RemoveData();
AddSerie(SerieType.Bar, "serie1");
for (int i = 0; i < 5; i++)
{
AddXAxisData("x" + (i + 1));
AddData(0, Random.Range(10, 90));
}
}
#endif
}
}