or
@(Html.Kendo().Chart(Model.oeeList)
.Name("widget-oee-breakdown")
.Theme("black")
.DataSource(ds => ds
.Group(group => group.Add(model => model.resp_id))
)
.Series(series =>
{
series.Column <
double
?, string> (model => model.total, categoryExpression: model => model.area_name).Color("White").Name("Downtime").Labels(labels => labels.Visible(false).Format("{0:n2}")).Stack(true);
})
.ChartArea(ca => ca
.Background("transparent")
)
.CategoryAxis(axis => axis
.MajorGridLines(lines => lines.Visible(false))
.Labels(model => model.Rotation(90))
)
.Legend(legend => legend
.Visible(false)
)
.ValueAxis(axis => axis
.Numeric()
.Max(100)
.Line(line => line.Visible(false))
.MajorGridLines(lines => lines.Visible(false))
.Labels(false)
)
.Tooltip(tooltip => tooltip
.Visible(true)
.Template("#= dataItem.resp_name #: #= kendo.format('{0:n2}', value) #")
)
)
{
Id:
"tags/weapon"
,
Name:
"Weapon"
,
Description:
"This item qualifies as a weapon in the game."
},
{
Id:
"tags/sword"
,
Name:
"Sword"
,
Description:
"This item qualifies as a sword in the game."
},
{
Id:
"tags/shield"
,
Name:
"Shield"
,
Description:
"This item qualifies as a shield in the game."
}
var
viewModel = kendo.observable({
Id:
null
,
Name:
null
,
Consumable:
false
,
Equipable:
false
,
Tags: [],
});
var
$tags = $(
"#tags"
).kendoMultiSelect({
dataTextField:
"Name"
,
dataValueField:
"Id"
,
itemTemplate: $(
'#editing-tags-template'
).html(),
dataSource: {
transport: {
read: {
dataType:
"json"
,
url: url
}
}
},
open:
function
(e) {
this
.list.addClass(
"k-tag-cloud"
);
},
close:
function
(e) {
}
}).data(
"kendoMultiSelect"
);
<select id=
"tags"
multiple=
"multiple"
data-placeholder=
"Select Tags..."
class=
"dark k-tag-cloud"
data-bind=
"value: Tags"
style=
"width: 500px;"
></select>
<
h2
>Preview</
h2
>
<
div
style
=
"border: dashed 2px black;"
>
<
div
style
=
"padding: 8px;"
>
<
h3
data-bind
=
"text: Name"
style
=
"margin: auto;"
></
h3
>
<
h5
data-bind
=
"visible: Equipable"
style
=
"margin: auto;"
>Equipable</
h5
>
<
h5
data-bind
=
"visible: Consumable"
style
=
"margin: auto;"
>Consumable</
h5
>
<
div
data-template
=
"templates-admin-prototype-tags-preview"
data-bind
=
"source: Tags"
></
div
>
</
div
>
</
div
>
<
script
type
=
"text/x-kendo-template"
id
=
"templates-admin-prototype-tags-preview"
>
<
div
class
=
"k-prototype-tag"
>${ Name }</
div
>
</
script
>