Hello,
I am using scatter line graph and i want to edit the labels of x-axis to name of months (Jan, Feb, March, Apr .... Dec) instead of numbers which are currently rendered. Below is the code and screenshot is attached.
I am using scatter line graph and i want to edit the labels of x-axis to name of months (Jan, Feb, March, Apr .... Dec) instead of numbers which are currently rendered. Below is the code and screenshot is attached.
function
rceTime() {
$(
"#chart9"
).kendoChart({
theme: $(document).data(
"kendoSkin"
) ||
"default"
,
title: {
text:
"Visa Expiry and Contract Expiry in Coming months"
},
dataSource: {
transport: {
read: {
url:
"scripts/contractExpiry.json"
,
dataType:
"json"
}
}
},
legend: {
visible:
true
,
position:
"right"
},
seriesDefaults: {
type:
"scatterLine"
,
},
series: [{
name:
"Contract Expiry"
,
xField:
"month"
,
yField:
"day"
},{
name:
"Visa Expiry"
,
xField:
"month1"
,
yField:
"day1"
}],
xAxis: {
title: {
text:
"Month"
},
max: 12,
},
yAxis: {
title: {
text:
"Date of Month"
},
min: 0,
max: 31,
labels: {
format:
"{0}"
}
},
tooltip: {
visible:
true
,
template:
"#= dataItem.name #"
}
});
}