コード例 #1
0
        /// <summary>
        /// Sets the axis orientation. The ValueAxis orientation should be set to match.
        /// </summary>
        /// <param name="orientation">The orientation. The default value is inferred from the series type.</param>
        /// <example>
        /// <code lang="CS">
        ///  &lt;%= Html.Telerik().Chart(Model)
        ///             .Name("Chart")
        ///             .CategoryAxis(c => c.Orientation(ChartAxisOrientation.Vertical))
        ///             .ValueAxis(v => v.Orientation(ChartAxisOrientation.Horizontal))
        ///             .Series(series => series.Line(s => s.Sales))
        /// %&gt;
        /// </code>
        /// </example>
        public ChartCategoryAxisBuilder <TModel> Orientation(ChartAxisOrientation orientation)
        {
            Container.CategoryAxis.Orientation = orientation;

            return(this);
        }
コード例 #2
0
 public ChartCategoryAxisBuilder <TModel> Orientation(ChartAxisOrientation orientation)
 {
     return(this);
 }
コード例 #3
0
        /// <summary>
        /// Sets the axis orientation. The CategoryAxis orientation should be set to match.
        /// </summary>
        /// <param name="orientation">The orientation. The default value is inferred from the series type.</param>
        /// <example>
        /// <code lang="CS">
        ///  &lt;%= Html.Telerik().Chart(Model)
        ///             .Name("Chart")
        ///             .CategoryAxis(c => c.Orientation(ChartAxisOrientation.Vertical))
        ///             .ValueAxis(v => v.Orientation(ChartAxisOrientation.Horizontal))
        ///             .Series(series => series.Line(s => s.Sales))
        /// %&gt;
        /// </code>
        /// </example>
        public ChartNumericAxisBuilder Orientation(ChartAxisOrientation orientation)
        {
            Axis.Orientation = orientation;

            return(this);
        }