Ejemplo n.º 1
0
        /// <summary>
        /// Defines value axis options
        /// </summary>
        /// <param name="configurator">The configurator</param>
        /// <example>
        /// <code lang="CS">
        ///  &lt;%= Html.Kendo().Sparkline(Model)
        ///             .Name("Sparkline")
        ///             .ValueAxis(a => a.Numeric().TickSize(4))
        /// %&gt;
        /// </code>
        /// </example>
        public SparklineBuilder <T> ValueAxis(Action <ChartValueAxisFactory <T> > configurator)
        {
            ChartValueAxisFactory <T> factory = new ChartValueAxisFactory <T>(Component, Component.ValueAxes);

            configurator(factory);

            return(this);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Configures Y-axis options for scatter charts.
        /// </summary>
        /// <param name="configurator">The configurator</param>
        /// <example>
        /// <code lang="CS">
        ///  &lt;%= Html.Kendo().StockChart(Model)
        ///             .Name("Chart")
        ///             .YAxis(a => a.Numeric().Max(4))
        /// %&gt;
        /// </code>
        /// </example>
        public StockChartBuilder <T> YAxis(Action <ChartValueAxisFactory <T> > configurator)
        {
            var factory = new ChartValueAxisFactory <T>(Component, Component.YAxes);

            configurator(factory);

            return(this);
        }