Hi,
The problem here is obvious. The autoScale for value axis is not working for some reason. I can set up min and max value which works but the data comming from server can vary greatly so we really need autoscale option.
here is the code. Any help or point st the right direction would be appreciated. thanks
The problem here is obvious. The autoScale for value axis is not working for some reason. I can set up min and max value which works but the data comming from server can vary greatly so we really need autoscale option.
here is the code. Any help or point st the right direction would be appreciated. thanks
function
createSalesChart() {
return
$(
"#report-sales-chart"
).height(400).kendoChart({
title:
"Sales Report Chart"
,
dataSource: chart_data,
autoBind:
false
,
seriesDefaults: { type:
"line"
, stack:
false
, missingValues:
"interpolate"
},
series: [
{
field:
"Gross_Total"
,
name:
"Gross Total"
,
groupNameTemplate:
"#= group.value # (#= series.name #)"
,
//name: "#= group.value # (#= series.name #)",
groupName:
"#= group.value #"
,
axis:
"currency"
}
],
categoryAxis: {
field:
"Date"
,
baseUnit:
"days"
,
labels: {
format:
"MMM"
,
skip: 4,
step: 4
}
},
valueAxis: {
name:
"currency"
,
/* autoScale: true,
AutoScale: true,
autoscale: true,*/
color:
"blue"
,
labels: { format: currency_prefix+
"{0}"
+currency_suffix },
//min:0,
//max:1000
},
legend: { position:
"bottom"
},
tooltip: { visible:
true
, format:
"0"
},
plotArea:{
background:
"#EEE"
}
});
}