ScatterErrorBarsBuilder
Methods
XValue(System.String)
Sets the error bars x value.
Parameters
xValue - System.String
The error bars x value.
Example
@( Html.Kendo().Chart(Model)
.Name("chart")
.Series(series => series
.Scatter(s => s.x, s => s.y)
.ErrorBars(e => e.XValue("stderr"))
)
)
XValue(System.Double)
Sets the error bars difference from the point x value.
Parameters
xValue - System.Double
The error bars difference from the point x value.
Example
@( Html.Kendo().Chart(Model)
.Name("chart")
.Series(series => series
.Scatter(s => s.x, s => s.y)
.ErrorBars(e => e.XValue(1))
)
)
XValue(System.Double,System.Double)
Sets the error bars low and high value difference from the point x value.
Parameters
xLowValue - System.Double
The error bar low value difference from point x value.
xHighValue - System.Double
The error bar high value difference from point x value.
Example
@( Html.Kendo().Chart(Model)
.Name("chart")
.Series(series => series
.Scatter(s => s.x, s => s.y)
.ErrorBars(e => e.XValue(1, 2))
)
)
XValue(System.Func)
Sets a handler function that returns the error bars x value.
Parameters
inlineCodeBlock - System.Func<Object,Object>
The handler code that returns the error bars x value.
Example
@( Html.Kendo().Chart(Model)
.Name("chart")
.Series(series => series
.Scatter(s => s.x, s => s.y)
.ErrorBars(e => e.XValue(o =>
@"function(data) {
var value = data.value.x,
lowPercentage = value * 0.05,
highPercentage = value * 0.1;
return [lowPercentage, highPercentage];
}"
))
)
)
YValue(System.String)
Sets the error bars y value.
Parameters
yValue - System.String
The error bars y value.
Example
@( Html.Kendo().Chart(Model)
.Name("chart")
.Series(series => series
.Scatter(s => s.x, s => s.y)
.ErrorBars(e => e.YValue("stderr"))
)
)
YValue(System.Double)
Sets the error bars difference from the point y value.
Parameters
yValue - System.Double
The error bars difference from the point y value.
Example
@( Html.Kendo().Chart(Model)
.Name("chart")
.Series(series => series
.Scatter(s => s.x, s => s.y)
.ErrorBars(e => e.YValue(1))
)
)
YValue(System.Double,System.Double)
Sets the error bars low and high value difference from the point y value.
Parameters
yLowValue - System.Double
The error bar low value difference from point y value.
yHighValue - System.Double
The error bar high value difference from point y value.
Example
@( Html.Kendo().Chart(Model)
.Name("chart")
.Series(series => series
.Scatter(s => s.x, s => s.y)
.ErrorBars(e => e.YValue(1, 2))
)
)
YValue(System.Func)
Sets a handler function that returns the error bars y value.
Parameters
inlineCodeBlock - System.Func<Object,Object>
The handler code that returns the error bars y value.
Example
@( Html.Kendo().Chart(Model)
.Name("chart")
.Series(series => series
.Scatter(s => s.x, s => s.y)
.ErrorBars(e => e.YValue(o =>
@"function(data) {
var value = data.value.y,
lowPercentage = value * 0.05,
highPercentage = value * 0.1;
return [lowPercentage, highPercentage];
}"
))
)
)
XLowField(System.String)
Sets the error bars x low field.
Parameters
xLowField - System.String
The error bars x low field.
Example
@( Html.Kendo().Chart(Model)
.Name("chart")
.Series(series => series
.Scatter(s => s.x, s => s.y)
.ErrorBars(e => e.XLowField("Low"))
)
)
XHighField(System.String)
Sets the error bars x high field.
Parameters
xHighField - System.String
The error bars x high field.
Example
@( Html.Kendo().Chart(Model)
.Name("chart")
.Series(series => series
.Scatter(s => s.x, s => s.y)
.ErrorBars(e => e.XHighField("High"))
)
)
XFields(System.String,System.String)
Sets the error bars x low and high fields.
Parameters
xLowField - System.String
The error bars x low field.
xHighField - System.String
The error bars x high field.
Example
@( Html.Kendo().Chart(Model)
.Name("chart")
.Series(series => series
.Scatter(s => s.x, s => s.y)
.ErrorBars(e => e.XFields("Low", "High"))
)
)
YLowField(System.String)
Sets the error bars y low field.
Parameters
yLowField - System.String
The error bars y low field.
Example
@( Html.Kendo().Chart(Model)
.Name("chart")
.Series(series => series
.Scatter(s => s.x, s => s.y)
.ErrorBars(e => e.YLowField("Low"))
)
)
YHighField(System.String)
Sets the error bars y high field.
Parameters
yHighField - System.String
The error bars y high field.
Example
@( Html.Kendo().Chart(Model)
.Name("chart")
.Series(series => series
.Scatter(s => s.x, s => s.y)
.ErrorBars(e => e.YHighField("High"))
)
)
YFields(System.String,System.String)
Sets the error bars y low and high fields.
Parameters
yLowField - System.String
The error bars y low field.
yHighField - System.String
The error bars y high field.
Example
@( Html.Kendo().Chart(Model)
.Name("chart")
.Series(series => series
.Scatter(s => s.x, s => s.y)
.ErrorBars(e => e.YFields("Low", "High"))
)
)
Color(System.String)
Sets the error bars color.
Parameters
color - System.String
The error bars color.
Example
@(Html.Kendo().Chart(Model)
.Name("chart")
.Series(series => series
.Bar(s => s.Sales)
.ErrorBars(e => e.Color("red"))
)
)
EndCaps(System.Boolean)
Sets a value indicating if the end caps should be shown.
Parameters
endCaps - System.Boolean
A value indicating if the end caps should be shown.
Example
@(Html.Kendo().Chart(Model)
.Name("chart")
.Series(series => series
.Bar(s => s.Sales)
.ErrorBars(e => e.EndCaps("false"))
)
)
Line(System.Int32,System.String,Kendo.Mvc.UI.ChartDashType)
Configures the error bars lines.
Parameters
width - System.Int32
The line width.
color - System.String
The line color.
dashType - ChartDashType
The line dash type.
Example
@(Html.Kendo().Chart(Model)
.Name("chart")
.Series(series => series
.Bar(s => s.Sales)
.ErrorBars(e => e.Line(2, "red", ChartDashType.Dot))
)
)
Line(System.Action)
Configures the error bars lines.
Parameters
configurator - System.Action<ChartLineBuilderBase>
The configuration action.
Example
@(Html.Kendo().Chart(Model)
.Name("chart")
.Series(series => series
.Bar(s => s.Sales)
.ErrorBars(e => e.Line(l => l.Width(2)))
)
)
Visual(System.String)
Sets the error bar visual handler
Parameters
handler - System.String
The JavaScript handler name.
Example
@(Html.Kendo().Chart(Model)
.Name("chart")
.Series(series => series
.Bar(s => s.Sales)
.ErrorBars(e => e.Visual("errorBarVisual"))
)
)
Visual(System.Func)
Sets the error bar visual handler
Parameters
handler - System.Func<Object,Object>
The handler
Example
@(Html.Kendo().Chart(Model)
.Name("chart")
.Series(series => series
.Bar(s => s.Sales)
.ErrorBars(e => e.Visual(
@<text>
function(e) {
return e.createVisual(); // returns the default visual
}
</text>
)
)
)
)