/// <summary> /// Y軸。min~maxが入り、maxの最小値が保証されmaxギリギリちょい上まであるY軸。左で返るので右用は別途プロパティを変更すること。 /// </summary> /// <param name="min"></param> /// <param name="max"></param> /// <param name="minimumMax"></param> /// <returns></returns> protected static Axis getStandardYAxis(double min, double max, double minimumMax, string arranged) { var axis = new FlexisbleAxis(); axis.SetLogicalSize(min, CounterAutoScaleMax(max, minimumMax)); axis.Type = AxisType.YLeft; axis.Translator = x => ((long)x).ToString("#,0" + arranged); axis.TickEnumerator = StandardTickPicker; return(axis); }
/// <summary> /// 指定日付区間軸 /// </summary> /// <param name="dFrom"></param> /// <param name="dEnd"></param> /// <returns></returns> protected static Axis GetXAxisFromSpecificatedDate(DateTime dFrom, DateTime dEnd) { var axis = new FlexisbleAxis(); dFrom = dFrom.Date; dEnd = dEnd.Date; axis.SetLogicalSize(0, (dEnd - dFrom).TotalDays); axis.Type = AxisType.X; axis.Translator = x => "'" + (dFrom.AddDays(x).ToString("yy/MM/dd")); axis.TickEnumerator = (a) => DateTickPicker(a, dFrom, dEnd); return(axis); }