Hi,
How do I add Step programmatically using a json ?
My chart
$(
"#graficos"
).kendoChart({
dataSource: {
transport: {
read: {
url:
"/Graficos/VendasProdutos/"
+id,
contentType:
"application/json"
},
parameterMap:
function
(data, operation) {
return
JSON.stringify(data);
}
}
},
title: {
text:
"Produtos Vendas"
},
legend: {
position:
"bottom"
},
seriesDefaults: {
type:
"line"
},
series: [{
field:
"qtde"
,
name:
"Quantidade"
,
noteTextField:
"extremum"
,
notes: {
label: {
position:
"outside"
},
position:
"bottom"
}
}],
valueAxis: {
line: {
visible:
false
}
},
categoryAxis: {
field:
"MesAno"
,
labels: {
rotation: -45,
step: -> Here Add
programmatically in json
},
majorGridLines: {
visible:
false
}
},
tooltip: {
visible:
true
,
template:
"Mês/Ano -#= category # - #= series.name #: #= value #"
}
});