or
@(Html.Kendo().Sparkline()
.Name("Minutes")
.ChartArea(c => c.Height(100))
.DataSource(ds => ds
.Read(read => read.Url(Url.HttpRouteUrl("DefaultApi", new { controller = "UtilizationCall30Day" })).Type(HttpVerbs.Get))
)
.Series(series => series
.Column("SecondCount").Color("#00ADEE")
)
)
<
div
id
=
"otdQaGrid"
></
div
>
<!-- JavaScript -->
$(document).ready(function () {
dash.grid = $("#otdQaGrid").kendoGrid({
dataSource: {
type: "json",
transport: {
read: {
url: "/api/GetOtdAndQuality",
}
}
},
columns: [{
field: "CustomerName",
title: "Customer",
width: 200
}, {
field: "QualityAverage",
title: "Avg. Quality"
}, {
field: "OtdAverage",
title: "Avg. OTD"
}, {
field: "TotalParts",
title: "# of Parts",
width: 150
}, {
field: "MeetsOtd",
title: "MeetsOtd"
}, {
field: "YtdQuality",
title: "YTD Quality",
template: "<
span
class
=
'inlinespark'
>#: YtdQuality #</
span
>"
}],
height: 550,
dataBound: function (e) {
}
});
});
<
div
kendo-sparkline
style
=
"width: 20px; line-height: 20px; display: inline-block; height: 20px;"
k-series="[{
type: 'pie',
data: [8,16],
}]">
</
div
>
<
div
id
=
"files-format-chart"
style
=
"width:1120px;line-height:30px;cursor: pointer;"
></
div
>
$(
"#files-format-chart"
).kendoSparkline({
type:
"bar"
,
chartArea: {
opacity: 0,
margin: 0
},
plotArea: {
opacity: 0,
margin: 0
},
series:
/*array of series*/
,
valueAxis: {
max:
/*max value of series data to avoid space*/
}
});