New to Telerik UI for ASP.NET MVC? Download free 30-day trial

ChartPyramidSeriesBuilder

Properties

Series - IChartPyramidSeries

Gets the series type.

Methods

Name(System.String)

Sets the name of the series.

Parameters

text - System.String

Example


            @(Html.Kendo().Chart(Model)
                       .Name("Chart")
                       .Series(series => series.Pyramid(s => s.Sales, s => s.DateString).Name("Sales"))
            )

SegmentSpacing(System.Double)

Sets the segmentSpacing of the chart.

Parameters

segmentSpacing - System.Double

Example


            @(Html.Kendo().Chart()
                       .Name("Chart")
                       .Series(series => series.Pyramid(s => s.Sales, s => s.DateString).SegmentSpacing(5))
            )

Opacity(System.Double)

Sets the opacity of the pyramid series.

Parameters

opacity - System.Double

Example


            @(Html.Kendo().Chart()
                       .Name("Chart")
                       .Series(series => series.Pyramid(s => s.Sales, s => s.DateString).Opacity(0.3))
            )

DynamicHeight(System.Boolean)

Sets the dynamic height of the pyramid chart.

Parameters

dynamicHeight - System.Boolean

Example


            @(Html.Kendo().Chart()
                       .Name("Chart")
                       .Series(series => series.Pyramid(s => s.Sales, s => s.DateString).DynamicHeight(true))
            )

Labels(System.Action)

Configures the pyramid chart labels.

Parameters

configurator - System.Action<ChartPyramidLabelsBuilder>

The configuration action.

Example


            @(Html.Kendo().Chart()
                       .Name("Chart")
                       .Series(series => series
                           .Pyramid(s => s.Sales, s => s.DateString)
                           .Labels(labels => labels
                               .Color("red")
                               .Visible(true)
                           )
                        )
            )

Labels(System.Boolean)

Sets the visibility of pyramid chart labels.

Parameters

visible - System.Boolean

The visibility. The default value is false.

Example


            @(Html.Kendo().Chart()
                       .Name("Chart")
                       .Series(series => series
                           .Pyramid(s => s.Sales, s => s.DateString)
                           .Labels(true)
                       )
            )

Border(System.Int32,System.String,Kendo.Mvc.UI.ChartDashType)

Sets the pyramid segments border

Parameters

width - System.Int32

The pyramid segments border width.

color - System.String

The pyramid segments border color (CSS syntax).

dashType - ChartDashType

The pyramid segments border dash type.

Example


            @(Html.Kendo().Chart()
                      .Name("Chart")
                      .Series(series => series.Pyramid(s => s.Sales, s => s.DateString).Border(1, "#000", ChartDashType.Dot))
            )

Border(System.Action)

Configures the pyramid border

Parameters

configurator - System.Action<ChartBorderBuilder>

The border configuration action

Tooltip(System.Action)

Configure the series tooltip.

Parameters

configurator - System.Action<ChartTooltipBuilder>

Use the configurator to set the tooltip options.

Example


            @(Html.Kendo().Chart().Name("chart")
                        .Series(series =>
                            series.Pyramid(new dynamic[]{
                                new { category= "Impressions ", value= 434823, color= "#0e5a7e" },
                                new { category= "Clicks", value= 356854, color= "#166f99" }
                            }).Tooltip(tooltip => tooltip.Border(border => border.Color("#ff0000")))
                        )
            )

Tooltip(System.Boolean)

Sets the tooltip visibility.

Parameters

visible - System.Boolean

A value indicating if the tooltip should be displayed.

Example


            @(Html.Kendo().Chart().Name("chart")
                        .Series(series =>
                            series.Pyramid(new dynamic[]{
                                new { category= "Impressions ", value= 434823, color= "#0e5a7e" },
                                new { category= "Clicks", value= 356854, color= "#166f99" }
                            }).Tooltip(true)
                        )
            )

Visual(System.String)

Sets the series visual handler

Parameters

handler - System.String

The JavaScript function name.

Example


            @(Html.Kendo().Chart().Name("chart")
                        .Series(series =>
                            series.Pyramid(new dynamic[]{
                                new { category= "Impressions ", value= 434823, color= "#0e5a7e" },
                                new { category= "Clicks", value= 356854, color= "#166f99" }
                            }).Visual("pyramidVisual")
                        )
            )

Visual(System.Func)

Sets the series visual handler

Parameters

handler - System.Func<Object,Object>

The handler

Example


            @(Html.Kendo().Chart()
                    .Name("chart")
                    .Series(series =>
                    {
                        series.Pyramid(new dynamic[]{
                                new { category= "Impressions ", value= 434823, color= "#0e5a7e" },
                                new { category= "Clicks", value= 356854, color= "#166f99" }
                            }).Visual(
                        @<text>
                            function(e) {
                                return e.createVisual(); // returns the default visual
                            }
                        </text>
                    );
                    })
            ) 

In this article
Not finding the help you need?