or
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"
}
});
}
@Html.DropDownListFor(model => model.AccountTypeID, new SelectList((System.Collections.IEnumerable)ViewBag.AccountTypesDD, "Key", "Value"),
new { @class = "k-combobox" })
<
a
href="<%= organizations_categories_shops_path(@category) %>">
<
a
href="/#/organizations/<%= @organization.id %>/categories/<%= category.id %>/shops">