ChartAxisBaseUnitStepsBuilder
Methods
Milliseconds(System.Int32[])
The discrete BaseUnitStep values when BaseUnit is set to Milliseconds and BaseUnitStep is set to 0 (auto).
Parameters
steps - System.Int32[]
The discrete steps when BaseUnit is set to Milliseconds.
Example
@(Html.Kendo().Chart()
.Name("chart")
.Title("Units sold")
.Series(series => {
series
.Column(new int[] { 20, 40, 45, 30, 50 });
})
.CategoryAxis(axis => axis
.Date()
.BaseUnit(ChartAxisBaseUnit.Fit)
.AutoBaseUnitSteps(steps => steps.Milliseconds(1, 2))
)
)
Seconds(System.Int32[])
The discrete BaseUnitStep values when BaseUnit is set to Seconds and BaseUnitStep is set to 0 (auto).
Parameters
steps - System.Int32[]
The discrete steps when BaseUnit is set to Seconds.
Example
@(Html.Kendo().Chart()
.Name("chart")
.Title("Units sold")
.Series(series => {
series
.Column(new int[] { 20, 40, 45, 30, 50 });
})
.CategoryAxis(axis => axis
.Date()
.BaseUnit(ChartAxisBaseUnit.Fit)
.AutoBaseUnitSteps(steps => steps.Seconds(1, 2))
)
)
Minutes(System.Int32[])
The discrete BaseUnitStep values when BaseUnit is set to Minutes and BaseUnitStep is set to 0 (auto).
Parameters
steps - System.Int32[]
The discrete steps when BaseUnit is set to Minutes.
Example
@(Html.Kendo().Chart()
.Name("chart")
.Title("Units sold")
.Series(series => {
series
.Column(new int[] { 20, 40, 45, 30, 50 });
})
.CategoryAxis(axis => axis
.Date()
.BaseUnit(ChartAxisBaseUnit.Fit)
.AutoBaseUnitSteps(steps => steps.Minutes(1, 2))
)
)
Hours(System.Int32[])
The discrete BaseUnitStep values when BaseUnit is set to Hours and BaseUnitStep is set to 0 (auto).
Parameters
steps - System.Int32[]
The discrete steps when BaseUnit is set to Hours.
Example
@(Html.Kendo().Chart()
.Name("chart")
.Title("Units sold")
.Series(series => {
series
.Column(new int[] { 20, 40, 45, 30, 50 });
})
.CategoryAxis(axis => axis
.Date()
.BaseUnit(ChartAxisBaseUnit.Fit)
.AutoBaseUnitSteps(steps => steps.Hours(1, 2))
)
)
Days(System.Int32[])
The discrete BaseUnitStep values when BaseUnit is set to Days and BaseUnitStep is set to 0 (auto).
Parameters
steps - System.Int32[]
The discrete steps when BaseUnit is set to Days.
Example
@(Html.Kendo().Chart()
.Name("chart")
.Title("Units sold")
.Series(series => {
series
.Column(new int[] { 20, 40, 45, 30, 50 });
})
.CategoryAxis(axis => axis
.Date()
.BaseUnit(ChartAxisBaseUnit.Fit)
.AutoBaseUnitSteps(steps => steps.Days(1, 2))
)
)
Weeks(System.Int32[])
The discrete BaseUnitStep values when BaseUnit is set to Weeks and BaseUnitStep is set to 0 (auto).
Parameters
steps - System.Int32[]
The discrete steps when BaseUnit is set to Weeks.
Example
@(Html.Kendo().Chart()
.Name("chart")
.Title("Units sold")
.Series(series => {
series
.Column(new int[] { 20, 40, 45, 30, 50 });
})
.CategoryAxis(axis => axis
.Date()
.BaseUnit(ChartAxisBaseUnit.Fit)
.AutoBaseUnitSteps(steps => steps.Weeks(1, 2))
)
)
Months(System.Int32[])
The discrete BaseUnitStep values when BaseUnit is set to Months and BaseUnitStep is set to 0 (auto).
Parameters
steps - System.Int32[]
The discrete steps when BaseUnit is set to Months.
Example
@(Html.Kendo().Chart()
.Name("chart")
.Title("Units sold")
.Series(series => {
series
.Column(new int[] { 20, 40, 45, 30, 50 });
})
.CategoryAxis(axis => axis
.Date()
.BaseUnit(ChartAxisBaseUnit.Fit)
.AutoBaseUnitSteps(steps => steps.Months(1, 2))
)
)
Years(System.Int32[])
The discrete BaseUnitStep values when BaseUnit is set to Years and BaseUnitStep is set to 0 (auto).
Parameters
steps - System.Int32[]
The discrete steps when BaseUnit is set to Years.
Example
@(Html.Kendo().Chart()
.Name("chart")
.Title("Units sold")
.Series(series => {
series
.Column(new int[] { 20, 40, 45, 30, 50 });
})
.CategoryAxis(axis => axis
.Date()
.BaseUnit(ChartAxisBaseUnit.Fit)
.AutoBaseUnitSteps(steps => steps.Years(1, 2))
)
)