Kendo.Mvc.UI.Fluent.ChartNumericAxisBuilder

Defines the fluent interface for configuring numeric axis.

Methods

Min(System.Double)

Sets the axis minimum value.

Parameters

min System.Double

The axis minimum value.

Example (ASPX)

<%= Html.Kendo().Chart(Model)
    .Name("Chart")
    .ValueAxis(a => a.Numeric().Min(4))
%>

Max(System.Double)

Sets the axis maximum value.

Parameters

max System.Double

The axis maximum value.

Example (ASPX)

<%= Html.Kendo().Chart(Model)
    .Name("Chart")
    .ValueAxis(a => a.Numeric().Max(4))
%>

MajorUnit(System.Double)

Sets the interval between major divisions.

Parameters

majorUnit System.Double

The interval between major divisions.

Example (ASPX)

<%= Html.Kendo().Chart(Model)
    .Name("Chart")
    .ValueAxis(a => a.Numeric().MajorUnit(4))
%>

MinorUnit(System.Double)

Sets the interval between minor divisions. It defaults to MajorUnit / 5.

Parameters

minorUnit System.Double

The interval between minor divisions.

Example (ASPX)

<%= Html.Kendo().Chart(Model)
    .Name("Chart")
    .ValueAxis(a => a.Numeric()
        .MajorUnit(4)
        .MinorUnit(2)
        .MinorTicks(mt => mt.Visible(true))
    )
%>

AxisCrossingValue(System.Double)

Sets value at which the first perpendicular axis crosses this axis.

Parameters

axisCrossingValue System.Double

The value at which the first perpendicular axis crosses this axis.

Example (ASPX)

<%= Html.Kendo().Chart(Model)
    .Name("Chart")
    .ValueAxis(axis => axis.AxisCrossingValue(4))
%>

AxisCrossingValue(System.Double[])

Sets value at which perpendicular axes cross this axis.

Parameters

axisCrossingValues System.Double[]

The values at which perpendicular axes cross this axis.

Example (ASPX)

<%= Html.Kendo().Chart(Model)
    .Name("Chart")
    .XAxis(axis => axis.Numeric().AxisCrossingValue(0, 10))
    .YAxis(axis => axis.Numeric().Title("Axis 1"))
    .YAxis(axis => axis.Numeric("secondary").Title("Axis 2"))
%>

AxisCrossingValue(System.Collections.Generic.IEnumerable<System.Double>)

Sets value at which perpendicular axes cross this axis.

Parameters

axisCrossingValues System.Collections.Generic.IEnumerable<System.Double>

The values at which perpendicular axes cross this axis.

Example (ASPX)

<%= Html.Kendo().Chart(Model)
    .Name("Chart")
    .XAxis(axis => axis.Numeric().AxisCrossingValue(new double[] { 0, 10 }))
    .YAxis(axis => axis.Numeric().Title("Axis 1"))
    .YAxis(axis => axis.Numeric("secondary").Title("Axis 2"))
%>

Notes(System.Action<Kendo.Mvc.UI.Fluent.ChartAxisNotesBuilder>)

Defines the items.

Parameters

configurator System.Action<Kendo.Mvc.UI.Fluent.ChartAxisNotesBuilder>

The items of the notes.

Example (ASPX)

<% Html.Kendo().Chart()
    .Name("Chart")
    .ValueAxis(a => a.Numeric()
        .Note(note => note
            .Data(data =>
            {
                data.Add().Value(1);
                data.Add().Value(2);
            })
        )
    )
    .Render();
%>