using UnityEngine; using UnityEngine.UI; using System.Collections.Generic; namespace xcharts { [System.Serializable] public enum ChartType { line, bar } [System.Serializable] public class Title { public bool show = true; public string text = "Chart Title"; public Align align = Align.center; public float left; public float right; public float top = 5; public float bottom; } [System.Serializable] public enum Align { left, //左对齐 right, //右对齐 center //居中对齐 } [System.Serializable] public enum Location { left, right, top, bottom, start, middle, center, end, } [System.Serializable] public class Legend { public bool show = true; public Location location = Location.right; public float itemWidth = 50.0f; public float itemHeight = 20.0f; public float itemGap = 5; public float left; public float right = 5; public float top; public float bottom; public List dataList = new List(); public int checkDataListCount { get; set; } private List dataShowList = new List(); private List