/// <summary> /// Defines value axis options /// </summary> /// <param name="configurator">The configurator</param> /// <example> /// <code lang="CS"> /// <%= Html.Kendo().Sparkline(Model) /// .Name("Sparkline") /// .ValueAxis(a => a.Numeric().TickSize(4)) /// %> /// </code> /// </example> public SparklineBuilder <T> ValueAxis(Action <ChartValueAxisFactory <T> > configurator) { ChartValueAxisFactory <T> factory = new ChartValueAxisFactory <T>(Component, Component.ValueAxes); configurator(factory); return(this); }
/// <summary> /// Configures Y-axis options for scatter charts. /// </summary> /// <param name="configurator">The configurator</param> /// <example> /// <code lang="CS"> /// <%= Html.Kendo().StockChart(Model) /// .Name("Chart") /// .YAxis(a => a.Numeric().Max(4)) /// %> /// </code> /// </example> public StockChartBuilder <T> YAxis(Action <ChartValueAxisFactory <T> > configurator) { var factory = new ChartValueAxisFactory <T>(Component, Component.YAxes); configurator(factory); return(this); }