or
<!doctype html>
<
html
>
<
head
>
<
title
>Basic usage</
title
>
<
link
href
=
"../../../source/styles/kendo.common.css"
rel
=
"stylesheet"
/>
<
link
href
=
"../../../source/styles/kendo.default.css"
rel
=
"stylesheet"
/>
<
script
src
=
"../../../source/js/jquery.min.js"
></
script
>
<
script
src
=
"../../../source/js/kendo.core.js"
></
script
>
<
script
src
=
"../../../source/js/kendo.fx.js"
></
script
>
<
script
src
=
"../../../source/js/kendo.popup.js"
></
script
>
<
script
src
=
"../../../source/js/kendo.calendar.js"
></
script
>
<
script
src
=
"../../../source/js/kendo.datepicker.js"
></
script
>
<
style
type
=
"text/css"
>
body {
padding: 0;
margin: 0;
font: 76% tahoma, verdana, sans-serif;
color: #303030;
}
#container {
margin: 10px;
}
</
style
>
</
head
>
<
body
>
<
div
id
=
"container"
>
<
input
id
=
"datepicker"
value
=
"10/10/2011"
style
=
"width:150px;"
/>
</
div
>
<
script
>
$(document).ready(function() {
// create DatePicker from input HTML element
$("#datepicker").kendoDatePicker();
});
</
script
>
</
body
>
</
html
>
[
{
"CategoryText" : "Previous",
"SeriesValue" : 321131.5225
},
{
"CategoryText" : "Current",
"SeriesValue" : 300059.4610
}
]
var DELAY = 400;
function
createGenericBarChart(ChartName, JsonPath, ChartType, Title, LegendVisible, LegendPosition, CategoryLabelRotation, ValueLabelRotation, Stacked, SeriesLabelsVisible,
SeriesLabelsFormat, ToolTipLabelFormat, CategoryAxisField, BarSeriesDefinition, Maximized) {
$(ChartName).kendoChart({
dataSource: {
transport: {
read: {
url: JsonPath,
dataType:
"json"
}
}
},
title: {
text: Title,
font:
'14px Arial'
},
legend: {
position: LegendPosition,
visible: LegendVisible,
font:
'8px Arial'
},
seriesDefaults: {
type: ChartType,
stack: Stacked,
labels: {
visible: SeriesLabelsVisible,
position:
"outsideEnd"
,
format: SeriesLabelsFormat,
font:
'10px Arial'
}
},
series: BarSeriesDefinition,
valueAxis: {
labels: {
visible:
true
,
rotation: ValueLabelRotation,
font:
'10px Arial'
}
},
categoryAxis: {
field: CategoryAxisField,
labels: {
rotation: CategoryLabelRotation,
font:
'10px Arial'
}
},
tooltip: {
visible:
true
,
font:
'12px Arial'
}
});
}
<div id=
"dshitem1_1_divChart"
class=
"Chart"
style=
"z-index:8999;"
>1</div>
<script>
function
DashboardCaller1(chartid, maximized) {
var
BarSeries = [{
field:
"SeriesValue"
,
name:
"SeriesValue"
}];
createGenericBarChart(chartid,
'2626_1_Bar - Airline Contract AC -SUN_.json?id=59bd4fee-511f-480b-bbee-88c3051b800d'
,
'column'
,
'Bar - Airline Contract AC -SUN'
,
false
,
'top'
, -45, 0,
false
,
false
,
'{0:N2}'
,
'{0:N2}'
,
'CategoryText'
, BarSeries, maximized);
}
setTimeout(
function
() {
DashboardCaller1(
'#dshitem1_1_divChart'
,
false
);
}, 1 * DELAY);
</script>
</div>