or
01.app.directive("ibsResizeGraphDirective", ['$window', function ($window) {02. return function (scope, element) {03. //Bind to window resize so that we can have the elements respond.04. //There is no element.resize event and watching for width change doesn't work05. angular.element($window).bind('resize', function () {06. scope.$apply();07. });08. 09. //Watch for element.width() change10. scope.$watch(function () {11. return $(element).width();12. }, function (newValue, oldValue) {13. if (newValue != oldValue) {14. scope.graph.options.chartArea.width = $(element).width();15. // Turn off transitions so that the graphs don't redraw everytime the window changes16. if (oldValue != 0 && scope.graph.options.transitions) {17. scope.graph.options.transitions = false;18. }19. scope.graph.refresh();20. }21. })22. //...23. };24.}]);01.app.directive('ibsChart', [ "ibsMainService", function (ibsMainService) {02. return {03. // Restrict E for element04. restrict: 'E',05. // Here we setup the template for the code we want to replace our directive06. template:"<div ng-show='graph.options.title.text != null' \n\07. ibs-resize-graph-directive \n\08. ibs-owner-warehouse-listener-directive \n\09. ibs-graph-culture-caption \n\10. kendo-chart='graph' \n\11. k-options='chartOptions' \n\12. k-data-source='dataSource' \n\13. class='col-lg-4'/>",14. replace: true,15. scope: { 16. // ...17. },18. controller: function($scope){19. //...20. },21. link: function (scope, element, attrs) {22. //...23. };24.}]);01.<%@ page language="java" contentType="text/html; charset=ISO-8859-1"02. pageEncoding="ISO-8859-1"%>03.<%@ taglib prefix="kendo" uri="http://www.kendoui.com/jsp/tags"%>04.<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">05.<html>06.<head>07.<link href="styles/kendo.common.css" rel="stylesheet" />08.<link href="styles/kendo.default.min.css" rel="stylesheet" />09.<script src="js/jquery.min.js"></script>10.<script src="js/kendo.all.min.js"></script>11. 12. 13.<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">14.<title>Insert title2 here</title>15.</head>16.<body>17. <div id="example" class="k-content">18. <kendo:calendar name="cal1"></kendo:calendar>19. </div>20.</body>21.</html>

var shapes = new kendo.data.DataSource({type: "geojson"});
$("#map").kendoMap({
center: [44, 10],
zoom: 4,
layers: [{
type: "shape",
dataSource: shapes,
style: { fill: { opacity: 1 }}
}],
shapeCreated: function (e) {
var shape = e.shape;
shape.fill("#88f");
}
});
shapes.add({ "id": "FRA", "type": "Feature", "geometry": {
"type": "Polygon",
"coordinates": [[ [-4,48], [2,51], [9,44], [-2,45] ]] }
});
shapes.add({ "id": "ESP", "type": "Feature", "geometry": {
"type": "Polygon",
"coordinates": [[ [-9,43], [3,43], [2,36], [-9,37] ]] }
});