5 <meta http-equiv="X-UA-Compatible" content="IE=edge">
6 <title>AdminLTE 2 | ChartJS</title>
7 <!-- Tell the browser to be responsive to screen width -->
8 <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
9 <!-- Bootstrap 3.3.6 -->
10 <link rel="stylesheet" href="../../bootstrap/css/bootstrap.min.css">
12 <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.5.0/css/font-awesome.min.css">
14 <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/ionicons/2.0.1/css/ionicons.min.css">
16 <link rel="stylesheet" href="../../dist/css/AdminLTE.min.css">
17 <!-- AdminLTE Skins. Choose a skin from the css/skins
18 folder instead of downloading all of them to reduce the load. -->
19 <link rel="stylesheet" href="../../dist/css/skins/_all-skins.min.css">
21 <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
22 <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
24 <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
25 <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
28 <body class="hold-transition skin-blue sidebar-mini">
31 <header class="main-header">
33 <a href="../../index2.html" class="logo">
34 <!-- mini logo for sidebar mini 50x50 pixels -->
35 <span class="logo-mini"><b>A</b>LT</span>
36 <!-- logo for regular state and mobile devices -->
37 <span class="logo-lg"><b>Admin</b>LTE</span>
39 <!-- Header Navbar: style can be found in header.less -->
40 <nav class="navbar navbar-static-top">
41 <!-- Sidebar toggle button-->
42 <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
43 <span class="sr-only">Toggle navigation</span>
44 <span class="icon-bar"></span>
45 <span class="icon-bar"></span>
46 <span class="icon-bar"></span>
49 <div class="navbar-custom-menu">
50 <ul class="nav navbar-nav">
51 <!-- Messages: style can be found in dropdown.less-->
52 <li class="dropdown messages-menu">
53 <a href="#" class="dropdown-toggle" data-toggle="dropdown">
54 <i class="fa fa-envelope-o"></i>
55 <span class="label label-success">4</span>
57 <ul class="dropdown-menu">
58 <li class="header">You have 4 messages</li>
60 <!-- inner menu: contains the actual data -->
62 <li><!-- start message -->
64 <div class="pull-left">
65 <img src="../../dist/img/user2-160x160.jpg" class="img-circle" alt="User Image">
69 <small><i class="fa fa-clock-o"></i> 5 mins</small>
71 <p>Why not buy a new awesome theme?</p>
77 <li class="footer"><a href="#">See All Messages</a></li>
80 <!-- Notifications: style can be found in dropdown.less -->
81 <li class="dropdown notifications-menu">
82 <a href="#" class="dropdown-toggle" data-toggle="dropdown">
83 <i class="fa fa-bell-o"></i>
84 <span class="label label-warning">10</span>
86 <ul class="dropdown-menu">
87 <li class="header">You have 10 notifications</li>
89 <!-- inner menu: contains the actual data -->
93 <i class="fa fa-users text-aqua"></i> 5 new members joined today
98 <li class="footer"><a href="#">View all</a></li>
101 <!-- Tasks: style can be found in dropdown.less -->
102 <li class="dropdown tasks-menu">
103 <a href="#" class="dropdown-toggle" data-toggle="dropdown">
104 <i class="fa fa-flag-o"></i>
105 <span class="label label-danger">9</span>
107 <ul class="dropdown-menu">
108 <li class="header">You have 9 tasks</li>
110 <!-- inner menu: contains the actual data -->
112 <li><!-- Task item -->
116 <small class="pull-right">20%</small>
118 <div class="progress xs">
119 <div class="progress-bar progress-bar-aqua" style="width: 20%" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100">
120 <span class="sr-only">20% Complete</span>
125 <!-- end task item -->
129 <a href="#">View all tasks</a>
133 <!-- User Account: style can be found in dropdown.less -->
134 <li class="dropdown user user-menu">
135 <a href="#" class="dropdown-toggle" data-toggle="dropdown">
136 <img src="../../dist/img/user2-160x160.jpg" class="user-image" alt="User Image">
137 <span class="hidden-xs">Alexander Pierce</span>
139 <ul class="dropdown-menu">
141 <li class="user-header">
142 <img src="../../dist/img/user2-160x160.jpg" class="img-circle" alt="User Image">
145 Alexander Pierce - Web Developer
146 <small>Member since Nov. 2012</small>
150 <li class="user-body">
152 <div class="col-xs-4 text-center">
153 <a href="#">Followers</a>
155 <div class="col-xs-4 text-center">
156 <a href="#">Sales</a>
158 <div class="col-xs-4 text-center">
159 <a href="#">Friends</a>
165 <li class="user-footer">
166 <div class="pull-left">
167 <a href="#" class="btn btn-default btn-flat">Profile</a>
169 <div class="pull-right">
170 <a href="#" class="btn btn-default btn-flat">Sign out</a>
175 <!-- Control Sidebar Toggle Button -->
177 <a href="#" data-toggle="control-sidebar"><i class="fa fa-gears"></i></a>
183 <!-- Left side column. contains the logo and sidebar -->
184 <aside class="main-sidebar">
185 <!-- sidebar: style can be found in sidebar.less -->
186 <section class="sidebar">
187 <!-- Sidebar user panel -->
188 <div class="user-panel">
189 <div class="pull-left image">
190 <img src="../../dist/img/user2-160x160.jpg" class="img-circle" alt="User Image">
192 <div class="pull-left info">
193 <p>Alexander Pierce</p>
194 <a href="#"><i class="fa fa-circle text-success"></i> Online</a>
198 <form action="#" method="get" class="sidebar-form">
199 <div class="input-group">
200 <input type="text" name="q" class="form-control" placeholder="Search...">
201 <span class="input-group-btn">
202 <button type="submit" name="search" id="search-btn" class="btn btn-flat"><i class="fa fa-search"></i>
207 <!-- /.search form -->
208 <!-- sidebar menu: : style can be found in sidebar.less -->
209 <ul class="sidebar-menu">
210 <li class="header">MAIN NAVIGATION</li>
211 <li class="treeview">
213 <i class="fa fa-dashboard"></i> <span>Dashboard</span>
214 <span class="pull-right-container">
215 <i class="fa fa-angle-left pull-right"></i>
218 <ul class="treeview-menu">
219 <li><a href="../../index.html"><i class="fa fa-circle-o"></i> Dashboard v1</a></li>
220 <li><a href="../../index2.html"><i class="fa fa-circle-o"></i> Dashboard v2</a></li>
223 <li class="treeview">
225 <i class="fa fa-files-o"></i>
226 <span>Layout Options</span>
227 <span class="pull-right-container">
228 <span class="label label-primary pull-right">4</span>
231 <ul class="treeview-menu">
232 <li><a href="../layout/top-nav.html"><i class="fa fa-circle-o"></i> Top Navigation</a></li>
233 <li><a href="../layout/boxed.html"><i class="fa fa-circle-o"></i> Boxed</a></li>
234 <li><a href="../layout/fixed.html"><i class="fa fa-circle-o"></i> Fixed</a></li>
235 <li><a href="../layout/collapsed-sidebar.html"><i class="fa fa-circle-o"></i> Collapsed Sidebar</a></li>
239 <a href="../widgets.html">
240 <i class="fa fa-th"></i> <span>Widgets</span>
241 <span class="pull-right-container">
242 <small class="label pull-right bg-green">new</small>
246 <li class="treeview active">
248 <i class="fa fa-pie-chart"></i>
250 <span class="pull-right-container">
251 <i class="fa fa-angle-left pull-right"></i>
254 <ul class="treeview-menu">
255 <li class="active"><a href="chartjs.html"><i class="fa fa-circle-o"></i> ChartJS</a></li>
256 <li><a href="morris.html"><i class="fa fa-circle-o"></i> Morris</a></li>
257 <li><a href="flot.html"><i class="fa fa-circle-o"></i> Flot</a></li>
258 <li><a href="inline.html"><i class="fa fa-circle-o"></i> Inline charts</a></li>
261 <li class="treeview">
263 <i class="fa fa-laptop"></i>
264 <span>UI Elements</span>
265 <span class="pull-right-container">
266 <i class="fa fa-angle-left pull-right"></i>
269 <ul class="treeview-menu">
270 <li><a href="../UI/general.html"><i class="fa fa-circle-o"></i> General</a></li>
271 <li><a href="../UI/icons.html"><i class="fa fa-circle-o"></i> Icons</a></li>
272 <li><a href="../UI/buttons.html"><i class="fa fa-circle-o"></i> Buttons</a></li>
273 <li><a href="../UI/sliders.html"><i class="fa fa-circle-o"></i> Sliders</a></li>
274 <li><a href="../UI/timeline.html"><i class="fa fa-circle-o"></i> Timeline</a></li>
275 <li><a href="../UI/modals.html"><i class="fa fa-circle-o"></i> Modals</a></li>
278 <li class="treeview">
280 <i class="fa fa-edit"></i> <span>Forms</span>
281 <span class="pull-right-container">
282 <i class="fa fa-angle-left pull-right"></i>
285 <ul class="treeview-menu">
286 <li><a href="../forms/general.html"><i class="fa fa-circle-o"></i> General Elements</a></li>
287 <li><a href="../forms/advanced.html"><i class="fa fa-circle-o"></i> Advanced Elements</a></li>
288 <li><a href="../forms/editors.html"><i class="fa fa-circle-o"></i> Editors</a></li>
291 <li class="treeview">
293 <i class="fa fa-table"></i> <span>Tables</span>
294 <span class="pull-right-container">
295 <i class="fa fa-angle-left pull-right"></i>
298 <ul class="treeview-menu">
299 <li><a href="../tables/simple.html"><i class="fa fa-circle-o"></i> Simple tables</a></li>
300 <li><a href="../tables/data.html"><i class="fa fa-circle-o"></i> Data tables</a></li>
304 <a href="../calendar.html">
305 <i class="fa fa-calendar"></i> <span>Calendar</span>
306 <span class="pull-right-container">
307 <small class="label pull-right bg-red">3</small>
308 <small class="label pull-right bg-blue">17</small>
313 <a href="../mailbox/mailbox.html">
314 <i class="fa fa-envelope"></i> <span>Mailbox</span>
315 <span class="pull-right-container">
316 <small class="label pull-right bg-yellow">12</small>
317 <small class="label pull-right bg-green">16</small>
318 <small class="label pull-right bg-red">5</small>
322 <li class="treeview">
324 <i class="fa fa-folder"></i> <span>Examples</span>
325 <span class="pull-right-container">
326 <i class="fa fa-angle-left pull-right"></i>
329 <ul class="treeview-menu">
330 <li><a href="../examples/invoice.html"><i class="fa fa-circle-o"></i> Invoice</a></li>
331 <li><a href="../examples/profile.html"><i class="fa fa-circle-o"></i> Profile</a></li>
332 <li><a href="../examples/login.html"><i class="fa fa-circle-o"></i> Login</a></li>
333 <li><a href="../examples/register.html"><i class="fa fa-circle-o"></i> Register</a></li>
334 <li><a href="../examples/lockscreen.html"><i class="fa fa-circle-o"></i> Lockscreen</a></li>
335 <li><a href="../examples/404.html"><i class="fa fa-circle-o"></i> 404 Error</a></li>
336 <li><a href="../examples/500.html"><i class="fa fa-circle-o"></i> 500 Error</a></li>
337 <li><a href="../examples/blank.html"><i class="fa fa-circle-o"></i> Blank Page</a></li>
338 <li><a href="../examples/pace.html"><i class="fa fa-circle-o"></i> Pace Page</a></li>
341 <li class="treeview">
343 <i class="fa fa-share"></i> <span>Multilevel</span>
344 <span class="pull-right-container">
345 <i class="fa fa-angle-left pull-right"></i>
348 <ul class="treeview-menu">
349 <li><a href="#"><i class="fa fa-circle-o"></i> Level One</a></li>
351 <a href="#"><i class="fa fa-circle-o"></i> Level One
352 <span class="pull-right-container">
353 <i class="fa fa-angle-left pull-right"></i>
356 <ul class="treeview-menu">
357 <li><a href="#"><i class="fa fa-circle-o"></i> Level Two</a></li>
359 <a href="#"><i class="fa fa-circle-o"></i> Level Two
360 <span class="pull-right-container">
361 <i class="fa fa-angle-left pull-right"></i>
364 <ul class="treeview-menu">
365 <li><a href="#"><i class="fa fa-circle-o"></i> Level Three</a></li>
366 <li><a href="#"><i class="fa fa-circle-o"></i> Level Three</a></li>
371 <li><a href="#"><i class="fa fa-circle-o"></i> Level One</a></li>
374 <li><a href="../../documentation/index.html"><i class="fa fa-book"></i> <span>Documentation</span></a></li>
375 <li class="header">LABELS</li>
376 <li><a href="#"><i class="fa fa-circle-o text-red"></i> <span>Important</span></a></li>
377 <li><a href="#"><i class="fa fa-circle-o text-yellow"></i> <span>Warning</span></a></li>
378 <li><a href="#"><i class="fa fa-circle-o text-aqua"></i> <span>Information</span></a></li>
384 <!-- Content Wrapper. Contains page content -->
385 <div class="content-wrapper">
386 <!-- Content Header (Page header) -->
387 <section class="content-header">
390 <small>Preview sample</small>
392 <ol class="breadcrumb">
393 <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
394 <li><a href="#">Charts</a></li>
395 <li class="active">ChartJS</li>
399 <!-- Main content -->
400 <section class="content">
402 <div class="col-md-6">
404 <div class="box box-primary">
405 <div class="box-header with-border">
406 <h3 class="box-title">Area Chart</h3>
408 <div class="box-tools pull-right">
409 <button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i>
411 <button type="button" class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button>
414 <div class="box-body">
416 <canvas id="areaChart" style="height:250px"></canvas>
424 <div class="box box-danger">
425 <div class="box-header with-border">
426 <h3 class="box-title">Donut Chart</h3>
428 <div class="box-tools pull-right">
429 <button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i>
431 <button type="button" class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button>
434 <div class="box-body">
435 <canvas id="pieChart" style="height:250px"></canvas>
442 <!-- /.col (LEFT) -->
443 <div class="col-md-6">
445 <div class="box box-info">
446 <div class="box-header with-border">
447 <h3 class="box-title">Line Chart</h3>
449 <div class="box-tools pull-right">
450 <button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i>
452 <button type="button" class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button>
455 <div class="box-body">
457 <canvas id="lineChart" style="height:250px"></canvas>
465 <div class="box box-success">
466 <div class="box-header with-border">
467 <h3 class="box-title">Bar Chart</h3>
469 <div class="box-tools pull-right">
470 <button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i>
472 <button type="button" class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button>
475 <div class="box-body">
477 <canvas id="barChart" style="height:230px"></canvas>
485 <!-- /.col (RIGHT) -->
492 <!-- /.content-wrapper -->
493 <footer class="main-footer">
494 <div class="pull-right hidden-xs">
497 <strong>Copyright © 2014-2016 <a href="http://almsaeedstudio.com">Almsaeed Studio</a>.</strong> All rights
501 <!-- Control Sidebar -->
502 <aside class="control-sidebar control-sidebar-dark">
503 <!-- Create the tabs -->
504 <ul class="nav nav-tabs nav-justified control-sidebar-tabs">
505 <li><a href="#control-sidebar-home-tab" data-toggle="tab"><i class="fa fa-home"></i></a></li>
506 <li><a href="#control-sidebar-settings-tab" data-toggle="tab"><i class="fa fa-gears"></i></a></li>
509 <div class="tab-content">
510 <!-- Home tab content -->
511 <div class="tab-pane" id="control-sidebar-home-tab">
512 <h3 class="control-sidebar-heading">Recent Activity</h3>
513 <ul class="control-sidebar-menu">
515 <a href="javascript:void(0)">
516 <i class="menu-icon fa fa-birthday-cake bg-red"></i>
518 <div class="menu-info">
519 <h4 class="control-sidebar-subheading">Langdon's Birthday</h4>
521 <p>Will be 23 on April 24th</p>
526 <a href="javascript:void(0)">
527 <i class="menu-icon fa fa-user bg-yellow"></i>
529 <div class="menu-info">
530 <h4 class="control-sidebar-subheading">Frodo Updated His Profile</h4>
532 <p>New phone +1(800)555-1234</p>
537 <a href="javascript:void(0)">
538 <i class="menu-icon fa fa-envelope-o bg-light-blue"></i>
540 <div class="menu-info">
541 <h4 class="control-sidebar-subheading">Nora Joined Mailing List</h4>
543 <p>nora@example.com</p>
548 <a href="javascript:void(0)">
549 <i class="menu-icon fa fa-file-code-o bg-green"></i>
551 <div class="menu-info">
552 <h4 class="control-sidebar-subheading">Cron Job 254 Executed</h4>
554 <p>Execution time 5 seconds</p>
559 <!-- /.control-sidebar-menu -->
561 <h3 class="control-sidebar-heading">Tasks Progress</h3>
562 <ul class="control-sidebar-menu">
564 <a href="javascript:void(0)">
565 <h4 class="control-sidebar-subheading">
566 Custom Template Design
567 <span class="label label-danger pull-right">70%</span>
570 <div class="progress progress-xxs">
571 <div class="progress-bar progress-bar-danger" style="width: 70%"></div>
576 <a href="javascript:void(0)">
577 <h4 class="control-sidebar-subheading">
579 <span class="label label-success pull-right">95%</span>
582 <div class="progress progress-xxs">
583 <div class="progress-bar progress-bar-success" style="width: 95%"></div>
588 <a href="javascript:void(0)">
589 <h4 class="control-sidebar-subheading">
591 <span class="label label-warning pull-right">50%</span>
594 <div class="progress progress-xxs">
595 <div class="progress-bar progress-bar-warning" style="width: 50%"></div>
600 <a href="javascript:void(0)">
601 <h4 class="control-sidebar-subheading">
603 <span class="label label-primary pull-right">68%</span>
606 <div class="progress progress-xxs">
607 <div class="progress-bar progress-bar-primary" style="width: 68%"></div>
612 <!-- /.control-sidebar-menu -->
616 <!-- Stats tab content -->
617 <div class="tab-pane" id="control-sidebar-stats-tab">Stats Tab Content</div>
619 <!-- Settings tab content -->
620 <div class="tab-pane" id="control-sidebar-settings-tab">
622 <h3 class="control-sidebar-heading">General Settings</h3>
624 <div class="form-group">
625 <label class="control-sidebar-subheading">
627 <input type="checkbox" class="pull-right" checked>
631 Some information about this general settings option
634 <!-- /.form-group -->
636 <div class="form-group">
637 <label class="control-sidebar-subheading">
639 <input type="checkbox" class="pull-right" checked>
643 Other sets of options are available
646 <!-- /.form-group -->
648 <div class="form-group">
649 <label class="control-sidebar-subheading">
650 Expose author name in posts
651 <input type="checkbox" class="pull-right" checked>
655 Allow the user to show his name in blog posts
658 <!-- /.form-group -->
660 <h3 class="control-sidebar-heading">Chat Settings</h3>
662 <div class="form-group">
663 <label class="control-sidebar-subheading">
665 <input type="checkbox" class="pull-right" checked>
668 <!-- /.form-group -->
670 <div class="form-group">
671 <label class="control-sidebar-subheading">
672 Turn off notifications
673 <input type="checkbox" class="pull-right">
676 <!-- /.form-group -->
678 <div class="form-group">
679 <label class="control-sidebar-subheading">
681 <a href="javascript:void(0)" class="text-red pull-right"><i class="fa fa-trash-o"></i></a>
684 <!-- /.form-group -->
690 <!-- /.control-sidebar -->
691 <!-- Add the sidebar's background. This div must be placed
692 immediately after the control sidebar -->
693 <div class="control-sidebar-bg"></div>
697 <!-- jQuery 2.2.3 -->
698 <script src="../../plugins/jQuery/jquery-2.2.3.min.js"></script>
699 <!-- Bootstrap 3.3.6 -->
700 <script src="../../bootstrap/js/bootstrap.min.js"></script>
701 <!-- ChartJS 1.0.1 -->
702 <script src="../../plugins/chartjs/Chart.min.js"></script>
704 <script src="../../plugins/fastclick/fastclick.js"></script>
705 <!-- AdminLTE App -->
706 <script src="../../dist/js/app.min.js"></script>
707 <!-- AdminLTE for demo purposes -->
708 <script src="../../dist/js/demo.js"></script>
714 * Here we will create a few charts using ChartJS
721 // Get context with jQuery - using jQuery's .get() method.
722 var areaChartCanvas = $("#areaChart").get(0).getContext("2d");
723 // This will get the first returned node in the jQuery collection.
724 var areaChart = new Chart(areaChartCanvas);
726 var areaChartData = {
727 labels: ["January", "February", "March", "April", "May", "June", "July"],
730 label: "Electronics",
731 fillColor: "rgba(210, 214, 222, 1)",
732 strokeColor: "rgba(210, 214, 222, 1)",
733 pointColor: "rgba(210, 214, 222, 1)",
734 pointStrokeColor: "#c1c7d1",
735 pointHighlightFill: "#fff",
736 pointHighlightStroke: "rgba(220,220,220,1)",
737 data: [65, 59, 80, 81, 56, 55, 40]
740 label: "Digital Goods",
741 fillColor: "rgba(60,141,188,0.9)",
742 strokeColor: "rgba(60,141,188,0.8)",
743 pointColor: "#3b8bba",
744 pointStrokeColor: "rgba(60,141,188,1)",
745 pointHighlightFill: "#fff",
746 pointHighlightStroke: "rgba(60,141,188,1)",
747 data: [28, 48, 40, 19, 86, 27, 90]
752 var areaChartOptions = {
753 //Boolean - If we should show the scale at all
755 //Boolean - Whether grid lines are shown across the chart
756 scaleShowGridLines: false,
757 //String - Colour of the grid lines
758 scaleGridLineColor: "rgba(0,0,0,.05)",
759 //Number - Width of the grid lines
760 scaleGridLineWidth: 1,
761 //Boolean - Whether to show horizontal lines (except X axis)
762 scaleShowHorizontalLines: true,
763 //Boolean - Whether to show vertical lines (except Y axis)
764 scaleShowVerticalLines: true,
765 //Boolean - Whether the line is curved between points
767 //Number - Tension of the bezier curve between points
768 bezierCurveTension: 0.3,
769 //Boolean - Whether to show a dot for each point
771 //Number - Radius of each point dot in pixels
773 //Number - Pixel width of point dot stroke
774 pointDotStrokeWidth: 1,
775 //Number - amount extra to add to the radius to cater for hit detection outside the drawn point
776 pointHitDetectionRadius: 20,
777 //Boolean - Whether to show a stroke for datasets
779 //Number - Pixel width of dataset stroke
780 datasetStrokeWidth: 2,
781 //Boolean - Whether to fill the dataset with a color
783 //String - A legend template
784 legendTemplate: "<ul class=\"<%=name.toLowerCase()%>-legend\"><% for (var i=0; i<datasets.length; i++){%><li><span style=\"background-color:<%=datasets[i].lineColor%>\"></span><%if(datasets[i].label){%><%=datasets[i].label%><%}%></li><%}%></ul>",
785 //Boolean - whether to maintain the starting aspect ratio or not when responsive, if set to false, will take up entire container
786 maintainAspectRatio: true,
787 //Boolean - whether to make the chart responsive to window resizing
791 //Create the line chart
792 areaChart.Line(areaChartData, areaChartOptions);
797 var lineChartCanvas = $("#lineChart").get(0).getContext("2d");
798 var lineChart = new Chart(lineChartCanvas);
799 var lineChartOptions = areaChartOptions;
800 lineChartOptions.datasetFill = false;
801 lineChart.Line(areaChartData, lineChartOptions);
806 // Get context with jQuery - using jQuery's .get() method.
807 var pieChartCanvas = $("#pieChart").get(0).getContext("2d");
808 var pieChart = new Chart(pieChartCanvas);
813 highlight: "#f56954",
819 highlight: "#00a65a",
825 highlight: "#f39c12",
831 highlight: "#00c0ef",
837 highlight: "#3c8dbc",
843 highlight: "#d2d6de",
848 //Boolean - Whether we should show a stroke on each segment
849 segmentShowStroke: true,
850 //String - The colour of each segment stroke
851 segmentStrokeColor: "#fff",
852 //Number - The width of each segment stroke
853 segmentStrokeWidth: 2,
854 //Number - The percentage of the chart that we cut out of the middle
855 percentageInnerCutout: 50, // This is 0 for Pie charts
856 //Number - Amount of animation steps
858 //String - Animation easing effect
859 animationEasing: "easeOutBounce",
860 //Boolean - Whether we animate the rotation of the Doughnut
862 //Boolean - Whether we animate scaling the Doughnut from the centre
864 //Boolean - whether to make the chart responsive to window resizing
866 // Boolean - whether to maintain the starting aspect ratio or not when responsive, if set to false, will take up entire container
867 maintainAspectRatio: true,
868 //String - A legend template
869 legendTemplate: "<ul class=\"<%=name.toLowerCase()%>-legend\"><% for (var i=0; i<segments.length; i++){%><li><span style=\"background-color:<%=segments[i].fillColor%>\"></span><%if(segments[i].label){%><%=segments[i].label%><%}%></li><%}%></ul>"
871 //Create pie or douhnut chart
872 // You can switch between pie and douhnut using the method below.
873 pieChart.Doughnut(PieData, pieOptions);
878 var barChartCanvas = $("#barChart").get(0).getContext("2d");
879 var barChart = new Chart(barChartCanvas);
880 var barChartData = areaChartData;
881 barChartData.datasets[1].fillColor = "#00a65a";
882 barChartData.datasets[1].strokeColor = "#00a65a";
883 barChartData.datasets[1].pointColor = "#00a65a";
884 var barChartOptions = {
885 //Boolean - Whether the scale should start at zero, or an order of magnitude down from the lowest value
886 scaleBeginAtZero: true,
887 //Boolean - Whether grid lines are shown across the chart
888 scaleShowGridLines: true,
889 //String - Colour of the grid lines
890 scaleGridLineColor: "rgba(0,0,0,.05)",
891 //Number - Width of the grid lines
892 scaleGridLineWidth: 1,
893 //Boolean - Whether to show horizontal lines (except X axis)
894 scaleShowHorizontalLines: true,
895 //Boolean - Whether to show vertical lines (except Y axis)
896 scaleShowVerticalLines: true,
897 //Boolean - If there is a stroke on each bar
899 //Number - Pixel width of the bar stroke
901 //Number - Spacing between each of the X value sets
903 //Number - Spacing between data sets within X values
904 barDatasetSpacing: 1,
905 //String - A legend template
906 legendTemplate: "<ul class=\"<%=name.toLowerCase()%>-legend\"><% for (var i=0; i<datasets.length; i++){%><li><span style=\"background-color:<%=datasets[i].fillColor%>\"></span><%if(datasets[i].label){%><%=datasets[i].label%><%}%></li><%}%></ul>",
907 //Boolean - whether to make the chart responsive
909 maintainAspectRatio: true
912 barChartOptions.datasetFill = false;
913 barChart.Bar(barChartData, barChartOptions);