ChartLegendItemMarkersSettingsBuilder
Methods
Background(System.String)
The background color of the legend item markers.
Parameters
value - System.String
The value for Background
Example
@(Html.Kendo().Chart()
.Name("Chart")
.Legend(legend => legend.Item(item => item.Markers(m => m.Background("green"))))
)
BackgroundHandler(System.String)
The background color of the legend item markers.
Parameters
handler - System.String
The name of the JavaScript function that will be evaluated.
Example
@(Html.Kendo().Chart()
.Name("Chart")
.Legend(legend => legend.Item(item => item.Markers(m => m.BackgroundHandler("backgroundHandler"))))
)
BackgroundHandler(System.Func)
The background color of the legend item markers.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
Example
@(Html.Kendo().Chart()
.Name("Chart")
.Legend(legend => legend.Item(item => item.Markers(m => m.BackgroundHandler(
@<text>
function(e) {
//event handling code
}
</text>)))))
Border(System.Action)
The border of the markers.
Parameters
configurator - System.Action<ChartLegendItemMarkersBorderSettingsBuilder>
The configurator for the border setting.
Example
@(Html.Kendo().Chart()
.Name("Chart")
.Legend(legend => legend.Item(item => item.Markers(m => m.Border(b => b.Color("green")))))
)
BorderRadius(System.Double)
The border radius in pixels when type is set to "roundedRect".
Parameters
value - System.Double
The value for BorderRadius
Example
@(Html.Kendo().Chart()
.Name("Chart")
.Legend(legend => legend.Item(item => item.Markers(m => m.BorderRadius(20))))
)
Visible(System.Boolean)
If set to true the chart will display the legend item markers. Defaults to the series options.
Parameters
value - System.Boolean
The value for Visible
Example
@(Html.Kendo().Chart()
.Name("Chart")
.Legend(legend => legend.Item(item => item.Markers(m => m.Visible(true))))
)
VisibleHandler(System.String)
If set to true the chart will display the legend item markers. Defaults to the series options.
Parameters
handler - System.String
The name of the JavaScript function that will be evaluated.
Example
@(Html.Kendo().Chart()
.Name("Chart")
.Legend(legend => legend.Item(item => item.Markers(m => m.VisibleHandler("visibleHandler"))))
)
VisibleHandler(System.Func)
If set to true the chart will display the legend item markers. Defaults to the series options.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
Example
@(Html.Kendo().Chart()
.Name("Chart")
.Legend(legend => legend.Item(item => item.Markers(m => m.VisibleHandler(
@<text>
function(e) {
//event handling code
}
</text>)))))
Visual(System.String)
A function that can be used to create a custom visual for the markers. The available argument fields are: rect - the kendo.geometry.Rect that defines where the visual should be rendered.; options - the marker options.; createVisual - a function that can be used to get the default visual.; category - the category of the marker point.; dataItem - the dataItem of the marker point.; value - the value of the marker point.; sender - the chart instance. or series - the series of the marker point..
Parameters
handler - System.String
The name of the JavaScript function that will be evaluated.
Example
@(Html.Kendo().Chart()
.Name("Chart")
.Legend(legend => legend.Item(item => item.Markers(m => m.Visual("visualHandler"))))
)
Visual(System.Func)
A function that can be used to create a custom visual for the markers. The available argument fields are: rect - the kendo.geometry.Rect that defines where the visual should be rendered.; options - the marker options.; createVisual - a function that can be used to get the default visual.; category - the category of the marker point.; dataItem - the dataItem of the marker point.; value - the value of the marker point.; sender - the chart instance. or series - the series of the marker point..
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
Example
@(Html.Kendo().Chart()
.Name("Chart")
.Legend(legend => legend.Item(item => item.Markers(m => m.Visual(
@<text>
function(e) {
//event handling code
}
</text>)))))
Type(Kendo.Mvc.UI.ChartMarkerShape)
The markers shape.
Parameters
value - ChartMarkerShape
The value for Type
Example
@(Html.Kendo().Chart()
.Name("Chart")
.Legend(legend => legend.Item(item => item.Markers(m => m.Type(ChartMarkerShape.Circle))))
)
TypeHandler(System.String)
The markers shape.
Parameters
handler - System.String
The name of the JavaScript function that will be evaluated.
Example
@(Html.Kendo().Chart()
.Name("Chart")
.Legend(legend => legend.Item(item => item.Markers(m => m.TypeHandler("typeHandler"))))
)
TypeHandler(System.Func)
The markers shape.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
Example
@(Html.Kendo().Chart()
.Name("Chart")
.Legend(legend => legend.Item(item => item.Markers(m => m.TypeHandler(
@<text>
function(e) {
//event handling code
}
</text>)))))