hi
i have a dataSource that spits out data like this:
and the chart markup looks like htis
after feb - the 'budget' MDetail falls off to 0
and before jun - i dont know what the 'projected' MDetail does
its drawing a bunch of stuff
what im trying to achieve here is:
if there are no records for anything after feb
then dont draw anything - just cut it off
ie dont descend to 0
and likewise if there are no records for the beginning
then dont draw anything until theres a record for the category
ie it iwll be blank until jun and then the 'projected' numbers start drawing
how do i do this?
thanksa!
i have a dataSource that spits out data like this:
[{
Amount: "2140402000"
MDetail: "Budget"
Month: "Jan"
Monthnum: "1"
Year: "2013"
},
{
Amount: "2146823206"
MDetail: "Budget"
Month: "Feb"
Monthnum: "2"
Year: "2013"
},
{
Amount: "2257798847"
MDetail: "Projected"
Month: "Jun"
Monthnum: "6"
Year: "2013"
},
{
Amount: "2272474540"
MDetail: "Projected"
Month: "Jul"
Monthnum: "7"
Year: "2013"
}]
and the chart markup looks like htis
$J("#chart").kendoChart({
dataSource: {
data:source,
group: {
field: "MDetail",
dir: "asc"
},
sort: [
{field: "Year", dir: "asc"},
{field: "Monthnum", dir: "asc"}
]
},
theme: "blueOpal",
title: {
text: "Total Cost of Workforce for " + year
},
legend: {
position: "bottom"
},
seriesDefaults: {
type: "area",
format: "${0:0,000}"
},
series: [{
field: "Amount",
groupNameTemplate: "#= group.value # "
}],
valueAxis: {
labels: {
template: "#= kendo.format('$ {0:N0}', value / 1000000) # M"
},
majorUnit: 100000000,
line: {
visible: false
},
axisCrossingValue: -10
},
categoryAxis: {
field: "Month",
majorGridLines: {
visible: false
}
},
tooltip: {
visible: true,
format: "$ {0:0,000}"
}
});
after feb - the 'budget' MDetail falls off to 0
and before jun - i dont know what the 'projected' MDetail does
its drawing a bunch of stuff
what im trying to achieve here is:
if there are no records for anything after feb
then dont draw anything - just cut it off
ie dont descend to 0
and likewise if there are no records for the beginning
then dont draw anything until theres a record for the category
ie it iwll be blank until jun and then the 'projected' numbers start drawing
how do i do this?
thanksa!