Is this possible and if so what property should I use?
Thanks
Roel Hans
6 Answers, 1 is accepted
xAxis:{
majorUnit: 1 //step size
}
Thanks for the info. That was what I was looking for. I must have overlooked it in the documentation as it is rightly stated there.
Thank you and kind regards
Roel Hans
$("#chartGradeInflations").kendoChart({
dataSource: source,
title: {
text: "Grade Inflation"
},
legend: {
visible: false,
position: "top",
},
theme: "moonlight",
seriesDefaults: {
type: "column",
stack: true
},
categoryAxis: {
majorGridLines: {
visible: false
}, labels: {
rotation: -75
}
},
tooltip: {
visible: true,
format: "{0}",
template: "Total Cost: #= dataItem.Value #<br>Active Employee: #= dataItem.HeadCount #",
},
series: [{
field: "Value",
categoryField: "Category",
},
],
valueAxis: {
minorGridLines: {
visible: false,
majorUnit: 100000
},
},
});
would you please tell me how can I decrease the interval of my valueAxis so that my chart bar will appear those are small valued in respect of other categories . My chart look is attached .
Hi, Shahed,
Thank you very much for the chart configuration.
The reason why the majorUnit is not applied in your case is because it is misplaced. It should be nested in the valueAxis, not inside the majorGridLines.
https://docs.telerik.com/kendo-ui/api/javascript/dataviz/ui/chart/configuration/valueaxis.majorunit
If you place it one level up, it should solve the issue:
https://dojo.telerik.com/ONuqateJ
Kind regards,
the Telerik team
var dataSource = new kendo.data.DataSource({
transport: {
read: {
url: '../PayrollDashboard/MonthlyGradeInflation/',
type: "POST",
async: true,
data: function () {
return source;
},
dataType: "json",
contentType: "application/json; charset=utf-8"
},
parameterMap: function (options) {
return JSON.stringify(options);
}
},
group: {
field: "Name",
}
});
Hello, Shahed,
This forum post discusses the step of the value axis and it is best to address non related questions such as grouping and stacking in other threads or in a private support tickets so that the forum thread can remain focused on that single topic for others who may visit it in the future.
Nonetheless, if you remove the series.categoryField from the configuration, the stack will take place. Here is an updated Dojo for your reference:
https://dojo.telerik.com/@bubblemaster/oraVOheG
Kind Regards,
Alex Hajigeorgieva
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.