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

Defines the fluent interface for configuring the chart target.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class ChartBulletTargetBuilder

Inheritance: objectChartBulletTargetBuilder

Inherited Members object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

Initializes a new instance of the ChartBulletTargetBuilder class.

C#
public ChartBulletTargetBuilder(ChartBulletTarget chartTarget)
Parameters:chartTargetChartBulletTarget

The chart target configuration.

Methods

Defines the configuration of the target border.

C#
public ChartBulletTargetBuilder Border(Action<ChartBorderBuilder> configurator)
Parameters:configuratorAction<ChartBorderBuilder>

The action that configures the border settings.

Returns:

ChartBulletTargetBuilder

Example:
C#
@(Html.Kendo().Chart&lt;ChartViewModel&gt;()
.Name("Chart")
.Series(series =&gt; series
.Bullet(s =&gt; s.Current, s =&gt; s.Target)
.Target(target =&gt; target
.Border(border =&gt; border.Width(2))
)
)
)

Sets the target border.

C#
public ChartBulletTargetBuilder Border(int width, string color, ChartDashType dashType)
Parameters:widthint

The border width.

colorstring

The border color (CSS syntax).

dashTypeChartDashType

The border dash type.

Returns:

ChartBulletTargetBuilder

Example:
C#
@(Html.Kendo().Chart&lt;ChartViewModel&gt;()
.Name("Chart")
.Series(series =&gt; series
.Bullet(s =&gt; s.Current, s =&gt; s.Target)
.Target(target =&gt; target
.Border(1, "red", ChartDashType.Dot)
)
)
)

Sets the color of the bullet chart target.

C#
public ChartBulletTargetBuilder Color(string color)
Parameters:colorstring

The color of the bullet chart target.

Returns:

ChartBulletTargetBuilder

Example:
C#
@(Html.Kendo().Chart&lt;ChartViewModel&gt;()
.Name("Chart")
.Series(series =&gt; series
.Bullet(s =&gt; s.Current, s =&gt; s.Target)
.Target(target =&gt; target.Color("green"))
)
)

Sets the target width.

C#
public ChartBulletTargetBuilder Width(int width)
Parameters:widthint

The value that configures the width.

Returns:

ChartBulletTargetBuilder

Example:
C#
@(Html.Kendo().Chart&lt;ChartViewModel&gt;()
.Name("Chart")
.Series(series =&gt; series
.Bullet(s =&gt; s.Current, s =&gt; s.Target)
.Target(target =&gt; target.Width(10))
)
)