ChartPyramidSeriesBuilder
Properties
Series - IChartPyramidSeries
Gets the series type.
Methods
Name(System.String)
Sets the name of the series.
Parameters
text - System.String
The text for a pyramid serie.
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
The segment spacing for a pyramid serie.
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
The opacity for a pyramid serie.
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
A boolean parameter for the dynamic height of a pyramid serie.
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>
);
})
)
PatternField(System.String)
Sets the data item field which contains the series pattern configuration for individual chart segments.
Parameters
value - System.String
The data item field which contains the series pattern configuration for individual chart segments
Example
@(Html.Kendo().Chart(Model)
.Name("Chart")
.Series(series => series.Pyramid(s => s.Sales, s => s.DateString).PatternField("Pattern"))
)
Pattern(System.Action)
The chart series pattern configuration options.
Parameters
configurator - System.Action<ChartSeriesPatternSettingsBuilder>
The configurator for the Pattern setting.