Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <html ng-app="app">
<head>
  <meta charset="utf-8">
  <title>Untitled</title>

  
  <link rel="stylesheet" href="http://cdn.kendostatic.com/2014.1.528/styles/kendo.common-bootstrap.min.css">
  <link rel="stylesheet" href="http://cdn.kendostatic.com/2014.1.528/styles/kendo.bootstrap.min.css">
    <link rel="stylesheet" href="http://cdn.kendostatic.com/2014.1.528/styles/kendo.bootstrap.mobile.min.css">
  <link href="https://getbootstrap.com/dist/css/bootstrap.css" rel="stylesheet" type="text/css" />
  <link href="//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.min.css" rel="stylesheet">
  
  <script src="https://code.jquery.com/jquery-1.9.1.min.js"></script>
  <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.14/angular.min.js"></script>
  <script src="http://cdn.kendostatic.com/2014.1.528/js/kendo.all.min.js"></script>
</head>
  <script src="https://cdn.rawgit.com/kendo-labs/angular-kendo/master/angular-kendo.js"></script>
<body ng-controller="DashboardController">
  
  <div class="container" id="dashboard">
    <div class="row">
      
      <!-- side column -->
      <div kendo-sortable class="col-sm-4 placeholder" id="side"
           k-connect-with="'#main'" 
           k-placeholder="placeholder" 
           k-hint="hint" 
           k-filter="'.widget'" 
           k-on-change="dropped(kendoEvent)">

        <div class="widget">  
          <ul kendo-panel-bar>
            <li class="k-state-active">
              <span class="k-link k-state-selected">Picture</span>
              <div class="widget-centered">
                <img class="img-responsive" src="http://www.placekitten.com/200/200">
              </div>
            </li>
          </ul>
          
        </div>
        
        <div class="widget">
          <div kendo-panel-bar>
            <li class="k-state-active">
              <span class="k-link k-state-selected">Sleep</span>
              <div>
                <h4>Hours Spent Asleep Per Day</h4>
                <div kendo-linear-gauge class="chart" k-theme="'bootstrap'" k-pointer="{ value: 16 }" k-scale="{ max: 24, vertical: false }"></div>
              </div>
            </li>
          </div>
        </div>
        
        <div class="widget">
          <ul kendo-panel-bar>
            <li class="k-state-active">
              <span class="k-link k-state-selected">Tastebuds</span>
              <div>
                <h4>Number Of Tastebuds (Millions)</h4>
                <div kendo-linear-gauge class="chart" k-theme="'bootstrap'" k-pointer="{ value: 473 }" k-scale="{ max: 1000, vertical: false }"></div>
              </div>
            </li>
          </ul>  
        </div>
      
      <!-- end side column -->
      </div>
      
      <!-- main column -->
      <div kendo-sortable id="main" class="col-sm-8 placeholder" 
           k-connect-with="'#side'" 
           k-placeholder="placeholder" 
           k-hint="hint" 
           k-filter="'.widget'" 
           k-on-change="dropped(kendoEvent)">
        
        <div class="widget">
          <ul kendo-panel-bar>
            <li class="k-state-active">
              <span class="k-link k-state-selected">What Is A Cat?</span>
              <div>
                <p>The domestic cat (Felis catus or Felis silvestris catus) is a small, usually furry, domesticated, and carnivorous mammal. It is often called the housecat when kept as an indoor pet, or simply the cat when there is no need to distinguish it from other felids and felines. Cats are often valued by humans for companionship and their ability to hunt vermin and household pests.  <a href="http://en.wikipedia.org/wiki/Cat">Read More...</a></p>
              </div>
            </li>
          </ul> 
        </div>
        
        <div class="widget">
          <ul kendo-panel-bar>
            <li class="k-state-active">
              <span class="k-link k-state-selected">Ownership By Country</span>
              <div>
                <div kendo-chart class="chart"  
                    k-theme="'bootstrap'" 
                    k-series-defaults="{ type: 'column' }" 
                    k-series="[{ field: 'value', tooltip: { visible: true, format: '000,' } }]" 
                    k-value-axis="{ labels: { template: '#: data.value/1000000 # M' } }"  
                      
                    k-data-source="country" 
                    k-category-axis="{ field: 'country', majorGridLines: false }" 
                    k-title="'Cat Owernship By Country'" ></div>
              </div>
            </li>
          </ul> 
        </div>
        
        <div class="widget">
          <ul kendo-panel-bar>
            <li class="k-state-active">
              <span class="k-link k-state-selected">Household Pet Ownership</span>
              <div>
                <div kendo-chart 
                    k-theme="'bootstrap'" 
                    k-data-source="pct" 
                    k-series-defaults="{ type: 'pie' }" 
                    k-series="[{ field: 'value', categoryField: 'type', tooltip: { visible: true, template: '#: category # #: value #' } }]" 
                    k-title="'Household Pet Ownership'"></div>
              </div>
            </li>
          </ul> 
        </div>
        
      <!-- end main column -->
      </div>
      
    <!-- end row -->
    </div>
    
  <!-- end container -->
  </div>
  
  
</body>
</html>
              
            
!

CSS

              
                html, body {
  height: 100%;
  width: 100%;
}

.widget {
  margin-bottom: 10px;
}

.widget .k-panelbar .k-content {
  padding: 10px;
}

.widget.placeholder {
  opacity: 0.4;
  border: 1px dashed #a6a6a6;
}

.widget-centered > * {
  margin: auto;
}
              
            
!

JS

              
                (function($) {
    
  var app = angular.module('app', ['kendo.directives']);
  
  app.controller('DashboardController', function ($scope) {
    
    $scope.placeholder = function(element) {
      return element.clone().addClass("placeholder");
    };

    $scope.hint = function(element) {
      return element.clone().addClass("hint")
        .height(element.height())
        .width(element.width());
    };
    
    $scope.country = new kendo.data.DataSource({
      data: [
        { country: "USA", value: 76430000 },
        { country: "China", value: 53100000 },
        { country: "Brazil", value: 12466000 },
        { country: "France", value: 9600000 },
        { country: "Italy", value: 9400000 },
        { country: "UK", value: 7700000 },
        { country: "Ukraine", value: 7350000 }
      ]
    });
    
    $scope.pct = new kendo.data.DataSource({
      data: [
        { type: "Dog", value: 36.5 },
        { type: "Cat", value: 30.4 },
        { type: "Other", value: 33.1 }
      ]
    });
    
    // when an item is dropped in either the side or
    // main containers, resize any Kendo UI widgets
    // inside
    $scope.dropped = function(e) {
      if (e.action === 'receive') {
        kendo.resize(e.item);
      }
    };
    
    
  });
  
}(jQuery)); 
   
              
            
!
999px

Console