暫無描述
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.

ParallelAxis.cs 905B

123456789101112131415161718192021222324252627282930
  1. using System.Collections.Generic;
  2. using UnityEngine;
  3. namespace XCharts.Runtime
  4. {
  5. [System.Serializable]
  6. [RequireChartComponent(typeof(ParallelCoord))]
  7. [ComponentHandler(typeof(ParallelAxisHander), true)]
  8. public class ParallelAxis : Axis
  9. {
  10. public override void SetDefaultValue()
  11. {
  12. m_Show = true;
  13. m_Type = AxisType.Value;
  14. m_Min = 0;
  15. m_Max = 0;
  16. m_SplitNumber = 0;
  17. m_BoundaryGap = true;
  18. m_Position = AxisPosition.Bottom;
  19. m_Offset = 0;
  20. m_Data = new List<string>() { "x1", "x2", "x3", "x4", "x5" };
  21. m_Icons = new List<Sprite>(5);
  22. splitLine.show = false;
  23. splitLine.lineStyle.type = LineStyle.Type.None;
  24. axisLabel.textLimit.enable = true;
  25. axisName.labelStyle.offset = new Vector3(0, 25, 0);
  26. }
  27. }
  28. }