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

Defines the fluent interface for configuring the error bars.

Definition

Constructors

Initializes a new instance of the ScatterErrorBarsBuilder class.

C#
public ScatterErrorBarsBuilder(ScatterErrorBars errorBars)
Parameters:errorBarsScatterErrorBars

The error bars.

Methods

Sets the error bars x low and high fields.

C#
public ScatterErrorBarsBuilder XFields(string xLowField, string xHighField)
Parameters:xLowFieldstring

The error bars x low field.

xHighFieldstring

The error bars x high field.

Returns:

ScatterErrorBarsBuilder

Example:
C#
@( Html.Kendo().Chart(Model)
.Name("chart")
.Series(series => series
.Scatter(s => s.x, s => s.y)
.ErrorBars(e => e.XFields("Low", "High"))
)
)

Sets the error bars x high field.

C#
public ScatterErrorBarsBuilder XHighField(string xHighField)
Parameters:xHighFieldstring

The error bars x high field.

Returns:

ScatterErrorBarsBuilder

Example:
C#
@( Html.Kendo().Chart(Model)
.Name("chart")
.Series(series => series
.Scatter(s => s.x, s => s.y)
.ErrorBars(e => e.XHighField("High"))
)
)

Sets the error bars x low field.

C#
public ScatterErrorBarsBuilder XLowField(string xLowField)
Parameters:xLowFieldstring

The error bars x low field.

Returns:

ScatterErrorBarsBuilder

Example:
C#
@( Html.Kendo().Chart(Model)
.Name("chart")
.Series(series => series
.Scatter(s => s.x, s => s.y)
.ErrorBars(e => e.XLowField("Low"))
)
)

Sets the error bars low and high value difference from the point x value.

C#
public ScatterErrorBarsBuilder XValue(double xLowValue, double xHighValue)
Parameters:xLowValuedouble

The error bar low value difference from point x value.

xHighValuedouble

The error bar high value difference from point x value.

Returns:

ScatterErrorBarsBuilder

Example:
C#
@( Html.Kendo().Chart(Model)
.Name("chart")
.Series(series => series
.Scatter(s => s.x, s => s.y)
.ErrorBars(e => e.XValue(1, 2))
)
)

Sets the error bars difference from the point x value.

C#
public ScatterErrorBarsBuilder XValue(double xValue)
Parameters:xValuedouble

The error bars difference from the point x value.

Returns:

ScatterErrorBarsBuilder

Example:
C#
@( Html.Kendo().Chart(Model)
.Name("chart")
.Series(series => series
.Scatter(s => s.x, s => s.y)
.ErrorBars(e => e.XValue(1))
)
)

Sets a handler function that returns the error bars x value.

C#
public ScatterErrorBarsBuilder XValue(Func<object, object> inlineCodeBlock)
Parameters:inlineCodeBlockFunc<object, object>

The handler code that returns the error bars x value.

Returns:

ScatterErrorBarsBuilder

Example:
C#
@( Html.Kendo().Chart(Model)
.Name("chart")
.Series(series =&gt; series
.Scatter(s =&gt; s.x, s =&gt; s.y)
.ErrorBars(e =&gt; e.XValue(o =&gt;
@"function(data) {
var value = data.value.x,
lowPercentage = value * 0.05,
highPercentage = value * 0.1;
return [lowPercentage, highPercentage];
}"
))
)
)

Sets the error bars x value.

C#
public ScatterErrorBarsBuilder XValue(string xValue)
Parameters:xValuestring

The error bars x value.

Returns:

ScatterErrorBarsBuilder

Example:
C#
@( Html.Kendo().Chart(Model)
.Name("chart")
.Series(series =&gt; series
.Scatter(s =&gt; s.x, s =&gt; s.y)
.ErrorBars(e =&gt; e.XValue("stderr"))
)
)

Sets the error bars y low and high fields.

C#
public ScatterErrorBarsBuilder YFields(string yLowField, string yHighField)
Parameters:yLowFieldstring

The error bars y low field.

yHighFieldstring

The error bars y high field.

Returns:

ScatterErrorBarsBuilder

Example:
C#
@( Html.Kendo().Chart(Model)
.Name("chart")
.Series(series =&gt; series
.Scatter(s =&gt; s.x, s =&gt; s.y)
.ErrorBars(e =&gt; e.YFields("Low", "High"))
)
)

Sets the error bars y high field.

C#
public ScatterErrorBarsBuilder YHighField(string yHighField)
Parameters:yHighFieldstring

The error bars y high field.

Returns:

ScatterErrorBarsBuilder

Example:
C#
@( Html.Kendo().Chart(Model)
.Name("chart")
.Series(series =&gt; series
.Scatter(s =&gt; s.x, s =&gt; s.y)
.ErrorBars(e =&gt; e.YHighField("High"))
)
)

Sets the error bars y low field.

C#
public ScatterErrorBarsBuilder YLowField(string yLowField)
Parameters:yLowFieldstring

The error bars y low field.

Returns:

ScatterErrorBarsBuilder

Example:
C#
@( Html.Kendo().Chart(Model)
.Name("chart")
.Series(series =&gt; series
.Scatter(s =&gt; s.x, s =&gt; s.y)
.ErrorBars(e =&gt; e.YLowField("Low"))
)
)

Sets the error bars low and high value difference from the point y value.

C#
public ScatterErrorBarsBuilder YValue(double yLowValue, double yHighValue)
Parameters:yLowValuedouble

The error bar low value difference from point y value.

yHighValuedouble

The error bar high value difference from point y value.

Returns:

ScatterErrorBarsBuilder

Example:
C#
@( Html.Kendo().Chart(Model)
.Name("chart")
.Series(series =&gt; series
.Scatter(s =&gt; s.x, s =&gt; s.y)
.ErrorBars(e =&gt; e.YValue(1, 2))
)
)

Sets the error bars difference from the point y value.

C#
public ScatterErrorBarsBuilder YValue(double yValue)
Parameters:yValuedouble

The error bars difference from the point y value.

Returns:

ScatterErrorBarsBuilder

Example:
C#
@( Html.Kendo().Chart(Model)
.Name("chart")
.Series(series =&gt; series
.Scatter(s =&gt; s.x, s =&gt; s.y)
.ErrorBars(e =&gt; e.YValue(1))
)
)

Sets a handler function that returns the error bars y value.

C#
public ScatterErrorBarsBuilder YValue(Func<object, object> inlineCodeBlock)
Parameters:inlineCodeBlockFunc<object, object>

The handler code that returns the error bars y value.

Returns:

ScatterErrorBarsBuilder

Example:
C#
@( Html.Kendo().Chart(Model)
.Name("chart")
.Series(series =&gt; series
.Scatter(s =&gt; s.x, s =&gt; s.y)
.ErrorBars(e =&gt; e.YValue(o =&gt;
@"function(data) {
var value = data.value.y,
lowPercentage = value * 0.05,
highPercentage = value * 0.1;
return [lowPercentage, highPercentage];
}"
))
)
)

Sets the error bars y value.

C#
public ScatterErrorBarsBuilder YValue(string yValue)
Parameters:yValuestring

The error bars y value.

Returns:

ScatterErrorBarsBuilder

Example:
C#
@( Html.Kendo().Chart(Model)
.Name("chart")
.Series(series =&gt; series
.Scatter(s =&gt; s.x, s =&gt; s.y)
.ErrorBars(e =&gt; e.YValue("stderr"))
)
)