AdminLTE/pages/charts/chartjs.html

942 lines
33 KiB
HTML
Raw Normal View History

2015-02-11 00:53:16 +00:00
<!DOCTYPE html>
<html>
2015-09-19 18:05:54 +00:00
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
2016-10-22 19:32:28 +00:00
<title>AdminLTE 3 | ChartJS</title>
2015-09-19 18:05:54 +00:00
<!-- Tell the browser to be responsive to screen width -->
2018-03-17 17:07:55 +00:00
<meta name="viewport" content="width=device-width, initial-scale=1">
2015-09-19 18:05:54 +00:00
<!-- Font Awesome -->
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.2/css/all.css" integrity="sha384-oS3vJWv+0UjzBfQzYUhtDYW+Pj2yciDJxpsK1OYPAYjqT085Qq/1cq5FLXAZQ7Ay" crossorigin="anonymous">
2015-09-19 18:05:54 +00:00
<!-- Ionicons -->
<link rel="stylesheet" href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css">
<!-- Theme style -->
2018-03-17 17:07:55 +00:00
<link rel="stylesheet" href="../../dist/css/adminlte.min.css">
<!-- Google Font: Source Sans Pro -->
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700" rel="stylesheet">
2015-09-19 18:05:54 +00:00
</head>
2018-03-17 17:07:55 +00:00
<body class="hold-transition sidebar-mini">
2015-09-19 18:05:54 +00:00
<div class="wrapper">
2018-03-17 17:07:55 +00:00
<!-- Navbar -->
<nav class="main-header navbar navbar-expand navbar-white navbar-light border-bottom">
2018-03-17 17:07:55 +00:00
<!-- Left navbar links -->
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" data-widget="pushmenu" href="#"><i class="fas fa-bars"></i></a>
2018-03-17 17:07:55 +00:00
</li>
<li class="nav-item d-none d-sm-inline-block">
<a href="../../index3.html" class="nav-link">Home</a>
</li>
<li class="nav-item d-none d-sm-inline-block">
<a href="#" class="nav-link">Contact</a>
</li>
</ul>
2015-09-19 18:05:54 +00:00
2018-03-17 17:07:55 +00:00
<!-- SEARCH FORM -->
<form class="form-inline ml-3">
<div class="input-group input-group-sm">
<input class="form-control form-control-navbar" type="search" placeholder="Search" aria-label="Search">
<div class="input-group-append">
<button class="btn btn-navbar" type="submit">
<i class="fas fa-search"></i>
2018-03-17 17:07:55 +00:00
</button>
</div>
</div>
</form>
<!-- Right navbar links -->
<ul class="navbar-nav ml-auto">
<!-- Messages Dropdown Menu -->
<li class="nav-item dropdown">
<a class="nav-link" data-toggle="dropdown" href="#">
<i class="far fa-comments"></i>
2018-03-17 17:07:55 +00:00
<span class="badge badge-danger navbar-badge">3</span>
</a>
<div class="dropdown-menu dropdown-menu-lg dropdown-menu-right">
<a href="#" class="dropdown-item">
<!-- Message Start -->
<div class="media">
<img src="../../dist/img/user1-128x128.jpg" alt="User Avatar" class="img-size-50 mr-3 img-circle">
<div class="media-body">
<h3 class="dropdown-item-title">
Brad Diesel
<span class="float-right text-sm text-danger"><i class="fas fa-star"></i></span>
2018-03-17 17:07:55 +00:00
</h3>
<p class="text-sm">Call me whenever you can...</p>
<p class="text-sm text-muted"><i class="far fa-clock mr-1"></i> 4 Hours Ago</p>
2018-03-17 17:07:55 +00:00
</div>
</div>
<!-- Message End -->
</a>
<div class="dropdown-divider"></div>
<a href="#" class="dropdown-item">
<!-- Message Start -->
<div class="media">
<img src="../../dist/img/user8-128x128.jpg" alt="User Avatar" class="img-size-50 img-circle mr-3">
<div class="media-body">
<h3 class="dropdown-item-title">
John Pierce
<span class="float-right text-sm text-muted"><i class="fas fa-star"></i></span>
2018-03-17 17:07:55 +00:00
</h3>
<p class="text-sm">I got your message bro</p>
<p class="text-sm text-muted"><i class="far fa-clock mr-1"></i> 4 Hours Ago</p>
2018-03-17 17:07:55 +00:00
</div>
</div>
<!-- Message End -->
</a>
<div class="dropdown-divider"></div>
<a href="#" class="dropdown-item">
<!-- Message Start -->
<div class="media">
<img src="../../dist/img/user3-128x128.jpg" alt="User Avatar" class="img-size-50 img-circle mr-3">
<div class="media-body">
<h3 class="dropdown-item-title">
Nora Silvester
<span class="float-right text-sm text-warning"><i class="fas fa-star"></i></span>
2018-03-17 17:07:55 +00:00
</h3>
<p class="text-sm">The subject goes here</p>
<p class="text-sm text-muted"><i class="far fa-clock mr-1"></i> 4 Hours Ago</p>
2018-03-17 17:07:55 +00:00
</div>
</div>
<!-- Message End -->
</a>
<div class="dropdown-divider"></div>
<a href="#" class="dropdown-item dropdown-footer">See All Messages</a>
</div>
</li>
<!-- Notifications Dropdown Menu -->
<li class="nav-item dropdown">
<a class="nav-link" data-toggle="dropdown" href="#">
<i class="far fa-bell"></i>
2018-03-17 17:07:55 +00:00
<span class="badge badge-warning navbar-badge">15</span>
</a>
<div class="dropdown-menu dropdown-menu-lg dropdown-menu-right">
<span class="dropdown-item dropdown-header">15 Notifications</span>
<div class="dropdown-divider"></div>
<a href="#" class="dropdown-item">
<i class="fas fa-envelope mr-2"></i> 4 new messages
2018-03-17 17:07:55 +00:00
<span class="float-right text-muted text-sm">3 mins</span>
</a>
<div class="dropdown-divider"></div>
<a href="#" class="dropdown-item">
<i class="fas fa-users mr-2"></i> 8 friend requests
2018-03-17 17:07:55 +00:00
<span class="float-right text-muted text-sm">12 hours</span>
</a>
<div class="dropdown-divider"></div>
<a href="#" class="dropdown-item">
<i class="fas fa-file mr-2"></i> 3 new reports
2018-03-17 17:07:55 +00:00
<span class="float-right text-muted text-sm">2 days</span>
</a>
<div class="dropdown-divider"></div>
<a href="#" class="dropdown-item dropdown-footer">See All Notifications</a>
</div>
</li>
<li class="nav-item">
<a class="nav-link" data-widget="control-sidebar" data-slide="true" href="#">
<i class="fas fa-th-large"></i>
2018-03-17 17:07:55 +00:00
</a>
</li>
</ul>
</nav>
<!-- /.navbar -->
<!-- Main Sidebar Container -->
<aside class="main-sidebar sidebar-dark-primary elevation-4">
<!-- Brand Logo -->
<a href="../../index3.html" class="brand-link">
<img src="../../dist/img/AdminLTELogo.png"
alt="AdminLTE Logo"
class="brand-image img-circle elevation-3"
style="opacity: .8">
<span class="brand-text font-weight-light">AdminLTE 3</span>
2015-09-19 18:05:54 +00:00
</a>
2018-03-17 17:07:55 +00:00
<!-- Sidebar -->
2018-04-23 00:08:03 +00:00
<div class="sidebar">
2018-03-17 17:07:55 +00:00
<!-- Sidebar user panel (optional) -->
<div class="user-panel mt-3 pb-3 mb-3 d-flex">
<div class="image">
<img src="../../dist/img/user2-160x160.jpg" class="img-circle elevation-2" alt="User Image">
</div>
<div class="info">
<a href="#" class="d-block">Alexander Pierce</a>
</div>
</div>
<!-- Sidebar Menu -->
<nav class="mt-2">
<ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu" data-accordion="false">
<!-- Add icons to the links using the .nav-icon class
with font-awesome or any other icon font library -->
<li class="nav-item has-treeview">
<a href="#" class="nav-link">
<i class="nav-icon fas fa-tachometer-alt"></i>
2018-03-17 17:07:55 +00:00
<p>
Dashboard
<i class="right fas fa-angle-left"></i>
2018-03-17 17:07:55 +00:00
</p>
</a>
<ul class="nav nav-treeview">
<li class="nav-item">
<a href="../../index.html" class="nav-link">
<i class="far fa-circle nav-icon"></i>
2018-03-17 17:07:55 +00:00
<p>Dashboard v1</p>
</a>
</li>
<li class="nav-item">
<a href="../../index2.html" class="nav-link">
<i class="far fa-circle nav-icon"></i>
2018-03-17 17:07:55 +00:00
<p>Dashboard v2</p>
</a>
</li>
<li class="nav-item">
<a href="../../index3.html" class="nav-link">
<i class="far fa-circle nav-icon"></i>
2018-03-17 17:07:55 +00:00
<p>Dashboard v3</p>
</a>
</li>
</ul>
</li>
<li class="nav-item">
<a href="../widgets.html" class="nav-link">
<i class="nav-icon fas fa-th"></i>
2018-03-17 17:07:55 +00:00
<p>
Widgets
<span class="right badge badge-danger">New</span>
</p>
</a>
</li>
<li class="nav-item has-treeview">
<a href="#" class="nav-link">
<i class="nav-icon fas fa-copy"></i>
<p>
Layout Options
<i class="fas fa-angle-left right"></i>
<span class="badge badge-info right">6</span>
</p>
</a>
<ul class="nav nav-treeview">
<li class="nav-item">
<a href="../layout/top-nav.html" class="nav-link">
<i class="far fa-circle nav-icon"></i>
<p>Top Navigation</p>
</a>
</li>
<li class="nav-item">
<a href="../layout/boxed.html" class="nav-link">
<i class="far fa-circle nav-icon"></i>
<p>Boxed</p>
</a>
</li>
<li class="nav-item">
<a href="../layout/fixed.html" class="nav-link">
<i class="far fa-circle nav-icon"></i>
<p>Fixed</p>
</a>
</li>
<li class="nav-item">
<a href="../layout/fixed-topnav.html" class="nav-link">
<i class="far fa-circle nav-icon"></i>
<p>Fixed Navbar</p>
</a>
</li>
<li class="nav-item">
<a href="../layout/fixed-footer.html" class="nav-link">
<i class="far fa-circle nav-icon"></i>
<p>Fixed Footer</p>
</a>
</li>
<li class="nav-item">
<a href="../layout/collapsed-sidebar.html" class="nav-link">
<i class="far fa-circle nav-icon"></i>
<p>Collapsed Sidebar</p>
</a>
</li>
</ul>
</li>
2018-03-17 17:07:55 +00:00
<li class="nav-item has-treeview menu-open">
<a href="#" class="nav-link active">
<i class="nav-icon fas fa-chart-pie"></i>
2018-03-17 17:07:55 +00:00
<p>
Charts
<i class="right fas fa-angle-left"></i>
2018-03-17 17:07:55 +00:00
</p>
2015-09-19 18:05:54 +00:00
</a>
2018-03-17 17:07:55 +00:00
<ul class="nav nav-treeview">
<li class="nav-item">
<a href="chartjs.html" class="nav-link active">
<i class="far fa-circle nav-icon"></i>
2018-03-17 17:07:55 +00:00
<p>ChartJS</p>
</a>
</li>
<li class="nav-item">
<a href="flot.html" class="nav-link">
<i class="far fa-circle nav-icon"></i>
2018-03-17 17:07:55 +00:00
<p>Flot</p>
</a>
</li>
<li class="nav-item">
<a href="inline.html" class="nav-link">
<i class="far fa-circle nav-icon"></i>
2018-03-17 17:07:55 +00:00
<p>Inline</p>
</a>
2015-02-11 00:53:16 +00:00
</li>
2015-09-19 18:05:54 +00:00
</ul>
</li>
2018-03-17 17:07:55 +00:00
<li class="nav-item has-treeview">
<a href="#" class="nav-link">
<i class="nav-icon fas fa-tree"></i>
2018-03-17 17:07:55 +00:00
<p>
UI Elements
<i class="fas fa-angle-left right"></i>
2018-03-17 17:07:55 +00:00
</p>
2015-09-19 18:05:54 +00:00
</a>
2018-03-17 17:07:55 +00:00
<ul class="nav nav-treeview">
<li class="nav-item">
<a href="../UI/general.html" class="nav-link">
<i class="far fa-circle nav-icon"></i>
2018-03-17 17:07:55 +00:00
<p>General</p>
</a>
</li>
<li class="nav-item">
<a href="../UI/icons.html" class="nav-link">
<i class="far fa-circle nav-icon"></i>
2018-03-17 17:07:55 +00:00
<p>Icons</p>
</a>
</li>
<li class="nav-item">
<a href="../UI/buttons.html" class="nav-link">
<i class="far fa-circle nav-icon"></i>
2018-03-17 17:07:55 +00:00
<p>Buttons</p>
</a>
</li>
<li class="nav-item">
<a href="../UI/sliders.html" class="nav-link">
<i class="far fa-circle nav-icon"></i>
2018-03-17 17:07:55 +00:00
<p>Sliders</p>
</a>
2015-02-11 00:53:16 +00:00
</li>
<li class="nav-item">
<a href="../UI/modals.html" class="nav-link">
<i class="far fa-circle nav-icon"></i>
<p>Modals & Alerts</p>
</a>
</li>
<li class="nav-item">
<a href="../UI/navbar.html" class="nav-link">
<i class="far fa-circle nav-icon"></i>
<p>Navbar & Tabs</p>
</a>
</li>
2015-09-19 18:05:54 +00:00
</ul>
</li>
2018-03-17 17:07:55 +00:00
<li class="nav-item has-treeview">
<a href="#" class="nav-link">
<i class="nav-icon fas fa-edit"></i>
2018-03-17 17:07:55 +00:00
<p>
Forms
<i class="fas fa-angle-left right"></i>
2018-03-17 17:07:55 +00:00
</p>
2015-09-19 18:05:54 +00:00
</a>
2018-03-17 17:07:55 +00:00
<ul class="nav nav-treeview">
<li class="nav-item">
<a href="../forms/general.html" class="nav-link">
<i class="far fa-circle nav-icon"></i>
2018-03-17 17:07:55 +00:00
<p>General Elements</p>
</a>
</li>
<li class="nav-item">
<a href="../forms/advanced.html" class="nav-link">
<i class="far fa-circle nav-icon"></i>
2018-03-17 17:07:55 +00:00
<p>Advanced Elements</p>
</a>
2015-02-11 00:53:16 +00:00
</li>
2018-03-17 17:07:55 +00:00
<li class="nav-item">
<a href="../forms/editors.html" class="nav-link">
<i class="far fa-circle nav-icon"></i>
2018-03-17 17:07:55 +00:00
<p>Editors</p>
</a>
2015-04-04 01:19:55 +00:00
</li>
2015-02-11 00:53:16 +00:00
</ul>
2015-09-19 18:05:54 +00:00
</li>
2018-03-17 17:07:55 +00:00
<li class="nav-item has-treeview">
<a href="#" class="nav-link">
<i class="nav-icon fas fa-table"></i>
2018-03-17 17:07:55 +00:00
<p>
Tables
<i class="fas fa-angle-left right"></i>
2018-03-17 17:07:55 +00:00
</p>
2015-09-19 18:05:54 +00:00
</a>
2018-03-17 17:07:55 +00:00
<ul class="nav nav-treeview">
<li class="nav-item">
<a href="../tables/simple.html" class="nav-link">
<i class="far fa-circle nav-icon"></i>
2018-03-17 17:07:55 +00:00
<p>Simple Tables</p>
</a>
2015-09-19 18:05:54 +00:00
</li>
2018-03-17 17:07:55 +00:00
<li class="nav-item">
<a href="../tables/data.html" class="nav-link">
<i class="far fa-circle nav-icon"></i>
2018-03-17 17:07:55 +00:00
<p>Data Tables</p>
</a>
2015-09-19 18:05:54 +00:00
</li>
2018-03-17 17:07:55 +00:00
</ul>
</li>
<li class="nav-header">EXAMPLES</li>
<li class="nav-item">
<a href="../calendar.html" class="nav-link">
<i class="nav-icon far fa-calendar-alt"></i>
2018-03-17 17:07:55 +00:00
<p>
Calendar
<span class="badge badge-info right">2</span>
</p>
</a>
</li>
<li class="nav-item has-treeview">
<a href="#" class="nav-link">
<i class="nav-icon far fa-envelope"></i>
2018-03-17 17:07:55 +00:00
<p>
Mailbox
<i class="fas fa-angle-left right"></i>
2018-03-17 17:07:55 +00:00
</p>
</a>
<ul class="nav nav-treeview">
<li class="nav-item">
<a href="../mailbox/mailbox.html" class="nav-link">
<i class="far fa-circle nav-icon"></i>
2018-03-17 17:07:55 +00:00
<p>Inbox</p>
</a>
</li>
<li class="nav-item">
<a href="../mailbox/compose.html" class="nav-link">
<i class="far fa-circle nav-icon"></i>
2018-03-17 17:07:55 +00:00
<p>Compose</p>
</a>
</li>
<li class="nav-item">
<a href="../mailbox/read-mail.html" class="nav-link">
<i class="far fa-circle nav-icon"></i>
2018-03-17 17:07:55 +00:00
<p>Read</p>
</a>
2015-09-19 18:05:54 +00:00
</li>
</ul>
</li>
2018-03-17 17:07:55 +00:00
<li class="nav-item has-treeview">
<a href="#" class="nav-link">
<i class="nav-icon fas fa-book"></i>
2018-03-17 17:07:55 +00:00
<p>
Pages
<i class="fas fa-angle-left right"></i>
2018-03-17 17:07:55 +00:00
</p>
</a>
<ul class="nav nav-treeview">
<li class="nav-item">
<a href="../examples/invoice.html" class="nav-link">
<i class="far fa-circle nav-icon"></i>
2018-03-17 17:07:55 +00:00
<p>Invoice</p>
</a>
</li>
<li class="nav-item">
<a href="../examples/profile.html" class="nav-link">
<i class="far fa-circle nav-icon"></i>
2018-03-17 17:07:55 +00:00
<p>Profile</p>
</a>
</li>
<li class="nav-item">
<a href="../examples/e_commerce.html" class="nav-link">
<i class="far fa-circle nav-icon"></i>
<p>E-commerce</p>
</a>
</li>
<li class="nav-item">
<a href="../examples/projects.html" class="nav-link">
<i class="far fa-circle nav-icon"></i>
<p>Projects</p>
</a>
</li>
<li class="nav-item">
<a href="../examples/project_add.html" class="nav-link">
<i class="far fa-circle nav-icon"></i>
<p>Project Add</p>
</a>
</li>
<li class="nav-item">
<a href="../examples/project_edit.html" class="nav-link">
<i class="far fa-circle nav-icon"></i>
<p>Project Edit</p>
</a>
</li>
<li class="nav-item">
<a href="../examples/project_detail.html" class="nav-link">
<i class="far fa-circle nav-icon"></i>
<p>Project Detail</p>
</a>
</li>
<li class="nav-item">
<a href="../examples/contacts.html" class="nav-link">
<i class="far fa-circle nav-icon"></i>
<p>Contacts</p>
</a>
</li>
2019-06-27 09:26:34 +00:00
</ul>
</li>
<li class="nav-item has-treeview">
<a href="#" class="nav-link">
<i class="nav-icon far fa-plus-square"></i>
<p>
Extras
<i class="fas fa-angle-left right"></i>
</p>
</a>
<ul class="nav nav-treeview">
2018-03-17 17:07:55 +00:00
<li class="nav-item">
<a href="../examples/login.html" class="nav-link">
<i class="far fa-circle nav-icon"></i>
2018-03-17 17:07:55 +00:00
<p>Login</p>
</a>
</li>
<li class="nav-item">
<a href="../examples/register.html" class="nav-link">
<i class="far fa-circle nav-icon"></i>
2018-03-17 17:07:55 +00:00
<p>Register</p>
</a>
</li>
<li class="nav-item">
<a href="../examples/lockscreen.html" class="nav-link">
<i class="far fa-circle nav-icon"></i>
2018-03-17 17:07:55 +00:00
<p>Lockscreen</p>
</a>
</li>
2019-06-27 09:26:34 +00:00
<li class="nav-item">
<a href="../examples/legacy-user-menu.html" class="nav-link">
<i class="far fa-circle nav-icon"></i>
<p>Legacy User Menu</p>
</a>
</li>
2018-03-17 17:07:55 +00:00
<li class="nav-item">
<a href="../examples/404.html" class="nav-link">
<i class="far fa-circle nav-icon"></i>
2018-03-17 17:07:55 +00:00
<p>Error 404</p>
</a>
</li>
<li class="nav-item">
<a href="../examples/500.html" class="nav-link">
<i class="far fa-circle nav-icon"></i>
2018-03-17 17:07:55 +00:00
<p>Error 500</p>
</a>
</li>
<li class="nav-item">
<a href="../examples/blank.html" class="nav-link">
<i class="far fa-circle nav-icon"></i>
2018-03-17 17:07:55 +00:00
<p>Blank Page</p>
</a>
</li>
<li class="nav-item">
<a href="../../starter.html" class="nav-link">
<i class="far fa-circle nav-icon"></i>
2018-03-17 17:07:55 +00:00
<p>Starter Page</p>
</a>
</li>
</ul>
</li>
<li class="nav-header">MISCELLANEOUS</li>
<li class="nav-item">
<a href="https://adminlte.io/docs" class="nav-link">
<i class="nav-icon fas fa-file"></i>
2018-03-17 17:07:55 +00:00
<p>Documentation</p>
</a>
</li>
<li class="nav-header">LABELS</li>
<li class="nav-item">
<a href="#" class="nav-link">
<i class="nav-icon far fa-circle text-danger"></i>
2018-03-17 17:07:55 +00:00
<p class="text">Important</p>
</a>
</li>
<li class="nav-item">
<a href="#" class="nav-link">
<i class="nav-icon far fa-circle text-warning"></i>
2018-03-17 17:07:55 +00:00
<p>Warning</p>
</a>
</li>
<li class="nav-item">
<a href="#" class="nav-link">
<i class="nav-icon far fa-circle text-info"></i>
2018-03-17 17:07:55 +00:00
<p>Informational</p>
</a>
2015-09-19 18:05:54 +00:00
</li>
</ul>
2018-03-17 17:07:55 +00:00
</nav>
<!-- /.sidebar-menu -->
</div>
2015-09-19 18:05:54 +00:00
<!-- /.sidebar -->
</aside>
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
2018-03-17 17:07:55 +00:00
<div class="container-fluid">
<div class="row mb-2">
<div class="col-sm-6">
<h1>ChartJS</h1>
</div>
<div class="col-sm-6">
<ol class="breadcrumb float-sm-right">
<li class="breadcrumb-item"><a href="#">Home</a></li>
<li class="breadcrumb-item active">ChartJS</li>
</ol>
</div>
</div>
</div><!-- /.container-fluid -->
2015-09-19 18:05:54 +00:00
</section>
<!-- Main content -->
<section class="content">
2018-03-17 17:07:55 +00:00
<div class="container-fluid">
<div class="row">
<div class="col-md-6">
<!-- AREA CHART -->
<div class="card card-primary">
<div class="card-header">
<h3 class="card-title">Area Chart</h3>
<div class="card-tools">
<button type="button" class="btn btn-tool" data-widget="collapse"><i class="fas fa-minus"></i>
2018-03-17 17:07:55 +00:00
</button>
<button type="button" class="btn btn-tool" data-widget="remove"><i class="fas fa-times"></i></button>
2018-03-17 17:07:55 +00:00
</div>
2015-09-19 18:05:54 +00:00
</div>
2018-03-17 17:07:55 +00:00
<div class="card-body">
<div class="chart">
<canvas id="areaChart" style="height:250px"></canvas>
</div>
2015-09-19 18:05:54 +00:00
</div>
2018-03-17 17:07:55 +00:00
<!-- /.card-body -->
2015-09-19 18:05:54 +00:00
</div>
2018-03-17 17:07:55 +00:00
<!-- /.card -->
2015-02-11 00:53:16 +00:00
2018-03-17 17:07:55 +00:00
<!-- DONUT CHART -->
<div class="card card-danger">
<div class="card-header">
<h3 class="card-title">Donut Chart</h3>
2015-09-19 18:05:54 +00:00
2018-03-17 17:07:55 +00:00
<div class="card-tools">
<button type="button" class="btn btn-tool" data-widget="collapse"><i class="fas fa-minus"></i>
2018-03-17 17:07:55 +00:00
</button>
<button type="button" class="btn btn-tool" data-widget="remove"><i class="fas fa-times"></i></button>
2018-03-17 17:07:55 +00:00
</div>
2015-09-19 18:05:54 +00:00
</div>
2018-03-17 17:07:55 +00:00
<div class="card-body">
<canvas id="donutChart" style="height:230px"></canvas>
</div>
<!-- /.card-body -->
</div>
<!-- /.card -->
<!-- PIE CHART -->
<div class="card card-danger">
<div class="card-header">
<h3 class="card-title">Pie Chart</h3>
<div class="card-tools">
<button type="button" class="btn btn-tool" data-widget="collapse"><i class="fas fa-minus"></i>
</button>
<button type="button" class="btn btn-tool" data-widget="remove"><i class="fas fa-times"></i></button>
</div>
</div>
<div class="card-body">
<canvas id="pieChart" style="height:230px"></canvas>
2018-03-17 17:07:55 +00:00
</div>
<!-- /.card-body -->
2015-09-19 18:05:54 +00:00
</div>
2018-03-17 17:07:55 +00:00
<!-- /.card -->
2015-02-11 00:53:16 +00:00
2018-03-17 17:07:55 +00:00
</div>
<!-- /.col (LEFT) -->
<div class="col-md-6">
<!-- LINE CHART -->
<div class="card card-info">
<div class="card-header">
<h3 class="card-title">Line Chart</h3>
<div class="card-tools">
<button type="button" class="btn btn-tool" data-widget="collapse"><i class="fas fa-minus"></i>
2018-03-17 17:07:55 +00:00
</button>
<button type="button" class="btn btn-tool" data-widget="remove"><i class="fas fa-times"></i></button>
2018-03-17 17:07:55 +00:00
</div>
2015-09-19 18:05:54 +00:00
</div>
2018-03-17 17:07:55 +00:00
<div class="card-body">
<div class="chart">
<canvas id="lineChart" style="height:250px"></canvas>
</div>
2015-09-19 18:05:54 +00:00
</div>
2018-03-17 17:07:55 +00:00
<!-- /.card-body -->
2015-09-19 18:05:54 +00:00
</div>
2018-03-17 17:07:55 +00:00
<!-- /.card -->
2015-04-04 01:19:55 +00:00
2018-03-17 17:07:55 +00:00
<!-- BAR CHART -->
<div class="card card-success">
<div class="card-header">
<h3 class="card-title">Bar Chart</h3>
2015-09-19 18:05:54 +00:00
2018-03-17 17:07:55 +00:00
<div class="card-tools">
<button type="button" class="btn btn-tool" data-widget="collapse"><i class="fas fa-minus"></i>
2018-03-17 17:07:55 +00:00
</button>
<button type="button" class="btn btn-tool" data-widget="remove"><i class="fas fa-times"></i></button>
2018-03-17 17:07:55 +00:00
</div>
2015-09-19 18:05:54 +00:00
</div>
2018-03-17 17:07:55 +00:00
<div class="card-body">
<div class="chart">
<canvas id="barChart" style="height:230px"></canvas>
</div>
2015-09-19 18:05:54 +00:00
</div>
2018-03-17 17:07:55 +00:00
<!-- /.card-body -->
2015-09-19 18:05:54 +00:00
</div>
2018-03-17 17:07:55 +00:00
<!-- /.card -->
2015-04-04 01:19:55 +00:00
<!-- STACKED BAR CHART -->
<div class="card card-success">
<div class="card-header">
<h3 class="card-title">Stacked Bar Chart</h3>
<div class="card-tools">
<button type="button" class="btn btn-tool" data-widget="collapse"><i class="fas fa-minus"></i>
</button>
<button type="button" class="btn btn-tool" data-widget="remove"><i class="fas fa-times"></i></button>
</div>
</div>
<div class="card-body">
<div class="chart">
<canvas id="stackedBarChart" style="height:230px"></canvas>
</div>
</div>
<!-- /.card-body -->
</div>
<!-- /.card -->
2018-03-17 17:07:55 +00:00
</div>
<!-- /.col (RIGHT) -->
2015-04-04 01:19:55 +00:00
</div>
2018-03-17 17:07:55 +00:00
<!-- /.row -->
</div><!-- /.container-fluid -->
2015-09-19 18:05:54 +00:00
</section>
<!-- /.content -->
</div>
<!-- /.content-wrapper -->
<footer class="main-footer">
2018-03-17 17:07:55 +00:00
<div class="float-right d-none d-sm-block">
2019-06-26 12:37:24 +00:00
<b>Version</b> 3.0.0-beta.2
2015-09-19 18:05:54 +00:00
</div>
2019-06-26 12:39:52 +00:00
<strong>Copyright &copy; 2014-2019 <a href="http://adminlte.io">AdminLTE.io</a>.</strong> All rights
2015-09-19 18:05:54 +00:00
reserved.
</footer>
<!-- Control Sidebar -->
<aside class="control-sidebar control-sidebar-dark">
2018-04-14 23:33:53 +00:00
<!-- Add Content Here -->
2015-09-19 18:05:54 +00:00
</aside>
<!-- /.control-sidebar -->
</div>
<!-- ./wrapper -->
2018-03-17 17:07:55 +00:00
<!-- jQuery -->
<script src="../../plugins/jquery/jquery.min.js"></script>
2018-02-03 23:45:19 +00:00
<!-- Bootstrap 4 -->
2018-03-17 17:07:55 +00:00
<script src="../../plugins/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- ChartJS -->
<script src="../../plugins/chart.js/Chart.min.js"></script>
2015-09-19 18:05:54 +00:00
<!-- FastClick -->
<script src="../../plugins/fastclick/fastclick.js"></script>
2015-09-19 18:05:54 +00:00
<!-- AdminLTE App -->
2018-03-17 17:07:55 +00:00
<script src="../../dist/js/adminlte.min.js"></script>
2015-09-19 18:05:54 +00:00
<!-- AdminLTE for demo purposes -->
<script src="../../dist/js/demo.js"></script>
<!-- page script -->
<script>
$(function () {
/* ChartJS
* -------
* Here we will create a few charts using ChartJS
*/
//--------------
//- AREA CHART -
//--------------
// Get context with jQuery - using jQuery's .get() method.
2018-03-17 17:07:55 +00:00
var areaChartCanvas = $('#areaChart').get(0).getContext('2d')
2015-09-19 18:05:54 +00:00
var areaChartData = {
2018-03-17 17:07:55 +00:00
labels : ['January', 'February', 'March', 'April', 'May', 'June', 'July'],
2015-09-19 18:05:54 +00:00
datasets: [
{
label : 'Digital Goods',
backgroundColor : 'rgba(60,141,188,0.9)',
borderColor : 'rgba(60,141,188,0.8)',
pointRadius : false,
pointColor : '#3b8bba',
pointStrokeColor : 'rgba(60,141,188,1)',
pointHighlightFill : '#fff',
pointHighlightStroke: 'rgba(60,141,188,1)',
data : [28, 48, 40, 19, 86, 27, 90]
},
2015-09-19 18:05:54 +00:00
{
2018-03-17 17:07:55 +00:00
label : 'Electronics',
backgroundColor : 'rgba(210, 214, 222, 1)',
borderColor : 'rgba(210, 214, 222, 1)',
pointRadius : false,
2018-03-17 17:07:55 +00:00
pointColor : 'rgba(210, 214, 222, 1)',
pointStrokeColor : '#c1c7d1',
pointHighlightFill : '#fff',
pointHighlightStroke: 'rgba(220,220,220,1)',
data : [65, 59, 80, 81, 56, 55, 40]
2015-09-19 18:05:54 +00:00
},
]
2018-03-17 17:07:55 +00:00
}
2015-09-19 18:05:54 +00:00
var areaChartOptions = {
maintainAspectRatio : false,
responsive : true,
legend: {
display: false
},
scales: {
xAxes: [{
gridLines : {
display : false,
}
}],
yAxes: [{
gridLines : {
display : false,
}
}]
}
2018-03-17 17:07:55 +00:00
}
2015-09-19 18:05:54 +00:00
// This will get the first returned node in the jQuery collection.
var areaChart = new Chart(areaChartCanvas, {
type: 'line',
data: areaChartData,
options: areaChartOptions
})
2015-09-19 18:05:54 +00:00
//-------------
//- LINE CHART -
//--------------
var lineChartCanvas = $('#lineChart').get(0).getContext('2d')
var lineChartOptions = areaChartOptions
var lineChartData = areaChartData
lineChartData.datasets[0].fill = false;
lineChartData.datasets[1].fill = false;
2018-03-17 17:07:55 +00:00
lineChartOptions.datasetFill = false
var lineChart = new Chart(lineChartCanvas, {
type: 'line',
data: lineChartData,
options: lineChartOptions
})
2015-09-19 18:05:54 +00:00
//-------------
//- DONUT CHART -
2015-09-19 18:05:54 +00:00
//-------------
// Get context with jQuery - using jQuery's .get() method.
var donutChartCanvas = $('#donutChart').get(0).getContext('2d')
var donutData = {
labels: [
'Chrome',
'IE',
'FireFox',
'Safari',
'Opera',
'Navigator',
],
datasets: [
{
data: [700,500,400,600,300,100],
backgroundColor : ['#f56954', '#00a65a', '#f39c12', '#00c0ef', '#3c8dbc', '#d2d6de'],
}
]
}
var donutOptions = {
maintainAspectRatio : false,
responsive : true,
}
//Create pie or douhnut chart
// You can switch between pie and douhnut using the method below.
var donutChart = new Chart(donutChartCanvas, {
type: 'doughnut',
data: donutData,
options: donutOptions
})
//-------------
//- PIE CHART -
//-------------
// Get context with jQuery - using jQuery's .get() method.
var pieChartCanvas = $('#pieChart').get(0).getContext('2d')
var pieData = donutData;
2018-03-17 17:07:55 +00:00
var pieOptions = {
maintainAspectRatio : false,
responsive : true,
2018-03-17 17:07:55 +00:00
}
2015-09-19 18:05:54 +00:00
//Create pie or douhnut chart
// You can switch between pie and douhnut using the method below.
var pieChart = new Chart(pieChartCanvas, {
type: 'pie',
data: pieData,
options: pieOptions
})
2015-09-19 18:05:54 +00:00
//-------------
//- BAR CHART -
//-------------
var barChartCanvas = $('#barChart').get(0).getContext('2d')
var barChartData = jQuery.extend(true, {}, areaChartData)
var temp0 = areaChartData.datasets[0]
var temp1 = areaChartData.datasets[1]
barChartData.datasets[0] = temp1
barChartData.datasets[1] = temp0
var barChartOptions = {
2018-03-17 17:07:55 +00:00
responsive : true,
maintainAspectRatio : false,
datasetFill : false
2018-03-17 17:07:55 +00:00
}
2015-09-19 18:05:54 +00:00
var barChart = new Chart(barChartCanvas, {
type: 'bar',
data: barChartData,
options: barChartOptions
})
//---------------------
//- STACKED BAR CHART -
//---------------------
var stackedBarChartCanvas = $('#stackedBarChart').get(0).getContext('2d')
var stackedBarChartData = jQuery.extend(true, {}, barChartData)
var stackedBarChartOptions = {
responsive : true,
maintainAspectRatio : false,
scales: {
xAxes: [{
stacked: true,
}],
yAxes: [{
stacked: true
}]
}
}
var stackedBarChart = new Chart(stackedBarChartCanvas, {
type: 'bar',
data: stackedBarChartData,
options: stackedBarChartOptions
})
2018-03-17 17:07:55 +00:00
})
2015-09-19 18:05:54 +00:00
</script>
</body>
2015-02-11 00:53:16 +00:00
</html>