Esempio n. 1
0
 private float GetDataHig(Axis axis, float value, float totalWidth)
 {
     if (axis.IsLog())
     {
         int   minIndex = axis.runtimeMinLogIndex;
         float nowIndex = axis.GetLogValue(value);
         return((nowIndex - minIndex) / axis.splitNumber * totalWidth);
     }
     else
     {
         return((float)((value - axis.runtimeMinValue) / axis.runtimeMinMaxRange * totalWidth));
     }
 }