설명 없음
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.

BaseChart.Custom.cs 1.0KB

12345678910111213141516171819202122232425262728293031
  1. using System;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. namespace XCharts.Runtime
  5. {
  6. public partial class BaseChart
  7. {
  8. public virtual void InitAxisRuntimeData(Axis axis) { }
  9. public virtual void GetSeriesMinMaxValue(Axis axis, int axisIndex, out double tempMinValue, out double tempMaxValue)
  10. {
  11. if (IsAllAxisValue())
  12. {
  13. if (axis is XAxis)
  14. {
  15. SeriesHelper.GetXMinMaxValue(this, axisIndex, true, axis.inverse, out tempMinValue, out tempMaxValue, false, false);
  16. }
  17. else
  18. {
  19. SeriesHelper.GetYMinMaxValue(this, axisIndex, true, axis.inverse, out tempMinValue, out tempMaxValue);
  20. }
  21. }
  22. else
  23. {
  24. SeriesHelper.GetYMinMaxValue(this, axisIndex, false, axis.inverse, out tempMinValue, out tempMaxValue);
  25. }
  26. AxisHelper.AdjustMinMaxValue(axis, ref tempMinValue, ref tempMaxValue, true);
  27. }
  28. }
  29. }