Ingen beskrivning
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

XAxis.cs 979B

123456789101112131415161718192021222324252627282930313233
  1. using System;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. namespace XCharts.Runtime
  5. {
  6. /// <summary>
  7. /// The x axis in cartesian(rectangular) coordinate.
  8. /// |直角坐标系 grid 中的 x 轴。
  9. /// </summary>
  10. [System.Serializable]
  11. [RequireChartComponent(typeof(GridCoord))]
  12. [ComponentHandler(typeof(XAxisHander), true)]
  13. public class XAxis : Axis
  14. {
  15. public override void SetDefaultValue()
  16. {
  17. m_Show = true;
  18. m_Type = AxisType.Category;
  19. m_Min = 0;
  20. m_Max = 0;
  21. m_SplitNumber = 0;
  22. m_BoundaryGap = true;
  23. m_Position = AxisPosition.Bottom;
  24. m_Offset = 0;
  25. m_Data = new List<string>() { "x1", "x2", "x3", "x4", "x5" };
  26. m_Icons = new List<Sprite>(5);
  27. splitLine.show = false;
  28. splitLine.lineStyle.type = LineStyle.Type.None;
  29. axisLabel.textLimit.enable = true;
  30. }
  31. }
  32. }