Exemple #1
0
        /// <summary>
        /// Defines the chart series.
        /// </summary>
        /// <param name="configurator">The add action.</param>
        /// <example>
        /// <code lang="CS">
        ///  &lt;%= Html.Kendo().StockChart(Model)
        ///             .Name("Chart")
        ///             .Series(series =>
        ///             {
        ///                 series.Bar(s => s.SalesAmount);
        ///             })
        /// %&gt;
        /// </code>
        /// </example>
        public StockChartBuilder <T> Series(Action <ChartSeriesFactory <T> > configurator)
        {
            ChartSeriesFactory <T> factory = new ChartSeriesFactory <T>(Component);

            configurator(factory);

            return(this);
        }
Exemple #2
0
        /// <summary>
        /// Defines the navigator series. At least one series should be configured.
        /// </summary>
        /// <param name="configurator">The add action.</param>
        /// <example>
        /// <code lang="CS">
        ///  &lt;%= Html.Kendo().StockChart(Model)
        ///             .Name("Chart")
        ///             .Navigator(nav =>
        ///                  nav.Series(series =>
        ///                 {
        ///                     series.Bar(s => s.SalesAmount);
        ///                 })
        ///             )
        /// %&gt;
        /// </code>
        /// </example>
        public ChartNavigatorBuilder <T> Series(Action <ChartSeriesFactory <T> > configurator)
        {
            ChartSeriesFactory <T> factory = new ChartSeriesFactory <T>(navigator);

            configurator(factory);

            return(this);
        }