cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

Code Indentation

     

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.

            
              <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'" >

        <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 class="col-sm-8 placeholder" k-connect-with="'#side'" k-placeholder="placeholder" k-hint="hint" k-filter="'.widget'" k-on-change="dropped(kendoEvent)" id="main">
        
        <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>
            
          
!
            
              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;
}
            
          
!
            
              (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 }
      ]
    });
    
  });
  
}(jQuery)); 
   
            
          
!
999px
Close

Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.

Go PRO

Loading ..................

Console