Nenhuma descrição
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

YAxis.cs 899B

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