New to Telerik UI for ASP.NET Core? Download free 30-day trial

ChartBulletSeriesBuilder

Properties

Series - IChartBulletSeries

The data used for binding.

Series - IChartBulletSeries

The data used for binding.

Methods

Gap(System.Double)

Set distance between category clusters. A value of 1 means that there is a total of 1 bullet width / vertical bullet height between categories. The distance is distributed evenly on each side. The default value is 1.5

Parameters

gap - System.Double

Example


            @(Html.Kendo().Chart(Model)
                       .Name("Chart")
                       .Series(series => series.Bullet(s => s.Current, s => s.Target).Gap(1))
            )

Spacing(System.Double)

Sets a value indicating the distance between bullets / categories.

Parameters

spacing - System.Double

Value of 1 means that the distance between bullets is equal to their width. The default value is 0

Example


            @(Html.Kendo().Chart(Model)
                       .Name("Chart")
                       .Series(series => series.Bullet(s => s.Current, s => s.Target).Spacing(1))
            )

Border(System.Int32,System.String,Kendo.Mvc.UI.ChartDashType)

Sets the bullets border.

Parameters

width - System.Int32

The bullets border width.

color - System.String

The bullets border color (CSS syntax).

dashType - ChartDashType

The bullets border dash type.

Example


            @(Html.Kendo().Chart()
                      .Name("Chart")
                      .Series(series => series.Bullet(s => s.Current, s => s.Target).Border("1", "#000", ChartDashType.Dot))
            )

Overlay(Kendo.Mvc.UI.ChartBarSeriesOverlay)

Sets the bullet effects overlay

Parameters

overlay - ChartBarSeriesOverlay

The bullet effects overlay. The default is ChartBarSeriesOverlay.Glass

Example


            @(Html.Kendo().Chart()
                      .Name("Chart")
                      .Series(series => series.Bullet(s => s.Current, s => s.Target).Overlay(ChartBarSeriesOverlay.None))
            )

Name(System.String)

Sets the series title displayed in the legend.

Parameters

name - System.String

The name.

Example


            @(Html.Kendo().Chart(Model)
                       .Name("Chart")
                       .Series(series => series.Bullet(s => s.Current, s => s.Target).Name("Sales"))
            )

Opacity(System.Double)

Sets the series opacity.

Parameters

opacity - System.Double

The series opacity in the range from 0 (transparent) to 1 (opaque). The default value is 1.

Example


            @(Html.Kendo().Chart(Model)
                       .Name("Chart")
                       .Series(series => series.Bullet(s => s.Current, s => s.Target).Opacity(0.5))
            )

Color(System.String)

Sets the bullet fill color

Parameters

color - System.String

The bar bullet color (CSS syntax).

Example


            @(Html.Kendo().Chart()
                      .Name("Chart")
                      .Series(series => series.Bullet(s => s.Current, s => s.Target).Color("Red"))
            )

Tooltip(System.Action)

Configure the data point tooltip for the series.

Parameters

configurator - System.Action<ChartTooltipBuilder>

Use the configurator to set data tooltip options.

Example


            @(Html.Kendo().Chart()
                       .Name("Chart")
                       .Series(series => series.Bullet(s => s.Current, s => s.Target)
                           .Tooltip(tooltip =>
                           {
                               tooltip.Visible(true).Format("{0:C}");
                           })
                       )
            )

Tooltip(System.Boolean)

Sets the data point tooltip visibility.

Parameters

visible - System.Boolean

A value indicating if the data point tooltip should be displayed. The tooltip is not visible by default.

Example


            @(Html.Kendo().Chart()
                       .Name("Chart")
                       .Series(series => series.Bullet(s => s.Current, s => s.Target).Tooltip(true))
            )

Axis(System.String)

Sets the axis name to use for this series.

Parameters

axis - System.String

The axis name for this series.

Example


            @(Html.Kendo().Chart(Model)
                       .Name("Chart")
                       .Series(series => series.Bullet(s => s.Current, s => s.Target).Name("Sales").Axis("secondary"))
                       .ValueAxis(axis => axis.Numeric())
                       .ValueAxis(axis => axis.Numeric("secondary"))
                       .CategoryAxis(axis => axis.AxisCrossingValue(0, 10))
            )

Target(System.Action)

Configure the data point tooltip for the series.

Parameters

configurator - System.Action<ChartBulletTargetBuilder>

Use the configurator to set data tooltip options.

Example


            @(Html.Kendo().Chart()
                       .Name("Chart")
                       .Series(series => series.Bullet(s => s.Current, s => s.Target)
                           .Tooltip(tooltip =>
                           {
                               tooltip.Visible(true).Format("{0:C}");
                           })
                       )
            )

CurrentField(System.String)

Sets the current field for the series

Parameters

currentField - System.String

The current field for the series

Example


            @(Html.Kendo().Chart()
                       .Name("Chart")
                       .Series(series => series.Bullter(Model.Records).CurrentField("Current").TargetField("Target"))
            )

TargetField(System.String)

Sets the target field for the series

Parameters

targetField - System.String

The target field for the series

Example


            @(Html.Kendo().Chart()
                       .Name("Chart")
                       .Series(series => series.Bullter(Model.Records).CurrentField("Current").TargetField("Target"))
            )

ColorHandler(System.Func)

Sets the function used to retrieve point color.

Parameters

colorFunction - System.Func<Object,Object>

The JavaScript function that will be executed to retrieve the color of each point.

Example


            @(Html.Kendo().Chart()
                       .Name("Chart")
                       .Series(series => series
                           .Bullet(s => s.Current, s => s.Target)
                           .ColorHandler(
                               @<text>
                               function(point) {
                                   return point.value > 5 ? "red" : "green";
                               }
                               </text>
                           )
                        )
            )

ColorHandler(System.String)

Sets the function used to retrieve point color.

Parameters

colorFunction - System.String

The JavaScript function that will be executed to retrieve the color of each point.

Example


            @(Html.Kendo().Chart()
                       .Name("Chart")
                       .Series(series => series
                           .Bullet(s => s.Current, s => s.Target)
                           .ColorHandler("pointColor")
                        )
            )

ColorField(System.String)

Sets the color field for the series

Parameters

colorField - System.String

The color field for the series

Example


            @(Html.Kendo().Chart()
                       .Name("Chart")
                       .Series(series => series.Bar(Model.Records).Field("Value").ColorField("Color"))
            )

NoteTextField(System.String)

Sets the note text field for the series

Parameters

noteTextField - System.String

The note text field for the series

Example


            @(Html.Kendo().Chart()
                       .Name("Chart")
                       .Series(series => series.Bar(Model.Records).Field("Value").NoteTextField("NoteText"))
            )

Labels(System.Action)

Configures the bar chart labels.

Parameters

configurator - System.Action<ChartBulletLabelsBuilder>

The configuration action.

Example


            @(Html.Kendo().Chart(Model)
                        .Name("Chart")
                        .Series(series => series
                            .Bar(s => s.Sales)
                            .Labels(labels => labels
                                .Position(ChartBarLabelsPosition.InsideEnd)
                                .Visible(true)
                            )
                         )
            )

DrilldownField(System.String)

The data field which contains the value to use to drill down into detailed data for the point.

Parameters

value - System.String

The value for DrilldownField

DrilldownSeriesFactory(System.String)

A function that creates the drilldown series for a given point.The function should accept a single parameter, the point drilldownField value. The function should return a series configuration object or a Promise that resolves to one.

Parameters

handler - System.String

The name of the JavaScript function that will be evaluated.

DrilldownSeriesFactory(System.Func)

A function that creates the drilldown series for a given point.The function should accept a single parameter, the point drilldownField value. The function should return a series configuration object or a Promise that resolves to one.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

In this article
Not finding the help you need?