mirror of
https://github.com/valitydev/gentelella.git
synced 2024-11-06 16:25:18 +00:00
676 lines
28 KiB
HTML
Executable File
676 lines
28 KiB
HTML
Executable File
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
<!-- Meta, title, CSS, favicons, etc. -->
|
|
<meta charset="utf-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
|
|
<title>Moris JS Chart Examples | Gentallela Alela! by Colorlib</title>
|
|
|
|
<!-- Bootstrap -->
|
|
<link href="../vendors/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
|
|
<!-- Font Awesome -->
|
|
<link href="../vendors/font-awesome/css/font-awesome.min.css" rel="stylesheet">
|
|
<!-- iCheck -->
|
|
<link href="../vendors/iCheck/skins/flat/green.css" rel="stylesheet">
|
|
|
|
<!-- Custom Theme Style -->
|
|
<link href="css/custom.css" rel="stylesheet">
|
|
</head>
|
|
|
|
<body class="nav-md">
|
|
<div class="container body">
|
|
<div class="main_container">
|
|
<div class="col-md-3 left_col">
|
|
<div class="left_col scroll-view">
|
|
<div class="navbar nav_title" style="border: 0;">
|
|
<a href="index.html" class="site_title"><i class="fa fa-paw"></i> <span>Gentellela Alela!</span></a>
|
|
</div>
|
|
|
|
<div class="clearfix"></div>
|
|
|
|
<!-- menu profile quick info -->
|
|
<div class="profile">
|
|
<div class="profile_pic">
|
|
<img src="images/img.jpg" alt="..." class="img-circle profile_img">
|
|
</div>
|
|
<div class="profile_info">
|
|
<span>Welcome,</span>
|
|
<h2>John Doe</h2>
|
|
</div>
|
|
</div>
|
|
<!-- /menu profile quick info -->
|
|
|
|
<br />
|
|
|
|
<!-- sidebar menu -->
|
|
<div id="sidebar-menu" class="main_menu_side hidden-print main_menu">
|
|
<div class="menu_section">
|
|
<h3>General</h3>
|
|
<ul class="nav side-menu">
|
|
<li><a><i class="fa fa-home"></i> Home <span class="fa fa-chevron-down"></span></a>
|
|
<ul class="nav child_menu">
|
|
<li><a href="index.html">Dashboard</a>
|
|
</li>
|
|
<li><a href="index2.html">Dashboard2</a>
|
|
</li>
|
|
<li><a href="index3.html">Dashboard3</a>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
<li><a><i class="fa fa-edit"></i> Forms <span class="fa fa-chevron-down"></span></a>
|
|
<ul class="nav child_menu">
|
|
<li><a href="form.html">General Form</a>
|
|
</li>
|
|
<li><a href="form_advanced.html">Advanced Components</a>
|
|
</li>
|
|
<li><a href="form_validation.html">Form Validation</a>
|
|
</li>
|
|
<li><a href="form_wizards.html">Form Wizard</a>
|
|
</li>
|
|
<li><a href="form_upload.html">Form Upload</a>
|
|
</li>
|
|
<li><a href="form_buttons.html">Form Buttons</a>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
<li><a><i class="fa fa-desktop"></i> UI Elements <span class="fa fa-chevron-down"></span></a>
|
|
<ul class="nav child_menu">
|
|
<li><a href="general_elements.html">General Elements</a>
|
|
</li>
|
|
<li><a href="media_gallery.html">Media Gallery</a>
|
|
</li>
|
|
<li><a href="typography.html">Typography</a>
|
|
</li>
|
|
<li><a href="icons.html">Icons</a>
|
|
</li>
|
|
<li><a href="glyphicons.html">Glyphicons</a>
|
|
</li>
|
|
<li><a href="widgets.html">Widgets</a>
|
|
</li>
|
|
<li><a href="invoice.html">Invoice</a>
|
|
</li>
|
|
<li><a href="inbox.html">Inbox</a>
|
|
</li>
|
|
<li><a href="calendar.html">Calendar</a>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
<li><a><i class="fa fa-table"></i> Tables <span class="fa fa-chevron-down"></span></a>
|
|
<ul class="nav child_menu">
|
|
<li><a href="tables.html">Tables</a>
|
|
</li>
|
|
<li><a href="tables_dynamic.html">Table Dynamic</a>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
<li><a><i class="fa fa-bar-chart-o"></i> Data Presentation <span class="fa fa-chevron-down"></span></a>
|
|
<ul class="nav child_menu">
|
|
<li><a href="chartjs.html">Chart JS</a>
|
|
</li>
|
|
<li><a href="chartjs2.html">Chart JS2</a>
|
|
</li>
|
|
<li><a href="morisjs.html">Moris JS</a>
|
|
</li>
|
|
<li><a href="echarts.html">ECharts </a>
|
|
</li>
|
|
<li><a href="other_charts.html">Other Charts </a>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
<li><a><i class="fa fa-clone"></i>Layouts <span class="fa fa-chevron-down"></span></a>
|
|
<ul class="nav child_menu">
|
|
<li><a href="fixed_sidebar.html">Fixed Sidebar</a>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div class="menu_section">
|
|
<h3>Live On</h3>
|
|
<ul class="nav side-menu">
|
|
<li><a><i class="fa fa-bug"></i> Additional Pages <span class="fa fa-chevron-down"></span></a>
|
|
<ul class="nav child_menu">
|
|
<li><a href="e_commerce.html">E-commerce</a>
|
|
</li>
|
|
<li><a href="projects.html">Projects</a>
|
|
</li>
|
|
<li><a href="project_detail.html">Project Detail</a>
|
|
</li>
|
|
<li><a href="contacts.html">Contacts</a>
|
|
</li>
|
|
<li><a href="profile.html">Profile</a>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
<li><a><i class="fa fa-windows"></i> Extras <span class="fa fa-chevron-down"></span></a>
|
|
<ul class="nav child_menu">
|
|
<li><a href="page_404.html">404 Error</a>
|
|
</li>
|
|
<li><a href="page_500.html">500 Error</a>
|
|
</li>
|
|
<li><a href="plain_page.html">Plain Page</a>
|
|
</li>
|
|
<li><a href="login.html">Login Page</a>
|
|
</li>
|
|
<li><a href="pricing_tables.html">Pricing Tables</a>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
<li><a><i class="fa fa-sitemap"></i> Multilevel Menu <span class="fa fa-chevron-down"></span></a>
|
|
<ul class="nav child_menu">
|
|
<li><a href="#level1_1">Level One</a>
|
|
<li><a>Level One<span class="fa fa-chevron-down"></span></a>
|
|
<ul class="nav child_menu">
|
|
<li class="sub_menu"><a href="level2.html">Level Two</a>
|
|
</li>
|
|
<li><a href="#level2_1">Level Two</a>
|
|
</li>
|
|
<li><a href="#level2_2">Level Two</a>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
<li><a href="#level1_2">Level One</a>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
<li><a href="javascript:void(0)"><i class="fa fa-laptop"></i> Landing Page <span class="label label-success pull-right">Coming Soon</span></a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
|
|
</div>
|
|
<!-- /sidebar menu -->
|
|
|
|
<!-- /menu footer buttons -->
|
|
<div class="sidebar-footer hidden-small">
|
|
<a data-toggle="tooltip" data-placement="top" title="Settings">
|
|
<span class="glyphicon glyphicon-cog" aria-hidden="true"></span>
|
|
</a>
|
|
<a data-toggle="tooltip" data-placement="top" title="FullScreen">
|
|
<span class="glyphicon glyphicon-fullscreen" aria-hidden="true"></span>
|
|
</a>
|
|
<a data-toggle="tooltip" data-placement="top" title="Lock">
|
|
<span class="glyphicon glyphicon-eye-close" aria-hidden="true"></span>
|
|
</a>
|
|
<a data-toggle="tooltip" data-placement="top" title="Logout">
|
|
<span class="glyphicon glyphicon-off" aria-hidden="true"></span>
|
|
</a>
|
|
</div>
|
|
<!-- /menu footer buttons -->
|
|
</div>
|
|
</div>
|
|
|
|
<!-- top navigation -->
|
|
<div class="top_nav">
|
|
|
|
<div class="nav_menu">
|
|
<nav class="" role="navigation">
|
|
<div class="nav toggle">
|
|
<a id="menu_toggle"><i class="fa fa-bars"></i></a>
|
|
</div>
|
|
|
|
<ul class="nav navbar-nav navbar-right">
|
|
<li class="">
|
|
<a href="javascript:;" class="user-profile dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
|
|
<img src="images/img.jpg" alt="">John Doe
|
|
<span class=" fa fa-angle-down"></span>
|
|
</a>
|
|
<ul class="dropdown-menu dropdown-usermenu pull-right">
|
|
<li><a href="javascript:;"> Profile</a>
|
|
</li>
|
|
<li>
|
|
<a href="javascript:;">
|
|
<span class="badge bg-red pull-right">50%</span>
|
|
<span>Settings</span>
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a href="javascript:;">Help</a>
|
|
</li>
|
|
<li><a href="login.html"><i class="fa fa-sign-out pull-right"></i> Log Out</a>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
|
|
<li role="presentation" class="dropdown">
|
|
<a href="javascript:;" class="dropdown-toggle info-number" data-toggle="dropdown" aria-expanded="false">
|
|
<i class="fa fa-envelope-o"></i>
|
|
<span class="badge bg-green">6</span>
|
|
</a>
|
|
<ul id="menu1" class="dropdown-menu list-unstyled msg_list" role="menu">
|
|
<li>
|
|
<a>
|
|
<span class="image">
|
|
<img src="images/img.jpg" alt="Profile Image" />
|
|
</span>
|
|
<span>
|
|
<span>John Smith</span>
|
|
<span class="time">3 mins ago</span>
|
|
</span>
|
|
<span class="message">
|
|
Film festivals used to be do-or-die moments for movie makers. They were where...
|
|
</span>
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a>
|
|
<span class="image">
|
|
<img src="images/img.jpg" alt="Profile Image" />
|
|
</span>
|
|
<span>
|
|
<span>John Smith</span>
|
|
<span class="time">3 mins ago</span>
|
|
</span>
|
|
<span class="message">
|
|
Film festivals used to be do-or-die moments for movie makers. They were where...
|
|
</span>
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a>
|
|
<span class="image">
|
|
<img src="images/img.jpg" alt="Profile Image" />
|
|
</span>
|
|
<span>
|
|
<span>John Smith</span>
|
|
<span class="time">3 mins ago</span>
|
|
</span>
|
|
<span class="message">
|
|
Film festivals used to be do-or-die moments for movie makers. They were where...
|
|
</span>
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a>
|
|
<span class="image">
|
|
<img src="images/img.jpg" alt="Profile Image" />
|
|
</span>
|
|
<span>
|
|
<span>John Smith</span>
|
|
<span class="time">3 mins ago</span>
|
|
</span>
|
|
<span class="message">
|
|
Film festivals used to be do-or-die moments for movie makers. They were where...
|
|
</span>
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<div class="text-center">
|
|
<a>
|
|
<strong>See All Alerts</strong>
|
|
<i class="fa fa-angle-right"></i>
|
|
</a>
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
|
|
</ul>
|
|
</nav>
|
|
</div>
|
|
|
|
</div>
|
|
<!-- /top navigation -->
|
|
|
|
<!-- page content -->
|
|
<div class="right_col" role="main">
|
|
<div class="">
|
|
<div class="page-title">
|
|
<div class="title_left">
|
|
<h3>Morris Js</h3>
|
|
</div>
|
|
|
|
<div class="title_right">
|
|
<div class="col-md-5 col-sm-5 col-xs-12 form-group pull-right top_search">
|
|
<div class="input-group">
|
|
<input type="text" class="form-control" placeholder="Search for...">
|
|
<span class="input-group-btn">
|
|
<button class="btn btn-default" type="button">Go!</button>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="clearfix"></div>
|
|
|
|
<div class="row">
|
|
|
|
<!-- bar chart -->
|
|
<div class="col-md-6 col-sm-6 col-xs-12">
|
|
<div class="x_panel">
|
|
<div class="x_title">
|
|
<h2>Bar Charts <small>Sessions</small></h2>
|
|
<ul class="nav navbar-right panel_toolbox">
|
|
<li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a>
|
|
</li>
|
|
<li class="dropdown">
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"><i class="fa fa-wrench"></i></a>
|
|
<ul class="dropdown-menu" role="menu">
|
|
<li><a href="#">Settings 1</a>
|
|
</li>
|
|
<li><a href="#">Settings 2</a>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
<li><a class="close-link"><i class="fa fa-close"></i></a>
|
|
</li>
|
|
</ul>
|
|
<div class="clearfix"></div>
|
|
</div>
|
|
<div class="x_content">
|
|
<div id="graph_bar" style="width:100%; height:280px;"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- /bar charts -->
|
|
|
|
<!-- bar charts group -->
|
|
<div class="col-md-6 col-sm-6 col-xs-12">
|
|
<div class="x_panel">
|
|
<div class="x_title">
|
|
<h2>Bar Chart Group <small>Sessions</small></h2>
|
|
<ul class="nav navbar-right panel_toolbox">
|
|
<li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a>
|
|
</li>
|
|
<li class="dropdown">
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"><i class="fa fa-wrench"></i></a>
|
|
<ul class="dropdown-menu" role="menu">
|
|
<li><a href="#">Settings 1</a>
|
|
</li>
|
|
<li><a href="#">Settings 2</a>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
<li><a class="close-link"><i class="fa fa-close"></i></a>
|
|
</li>
|
|
</ul>
|
|
<div class="clearfix"></div>
|
|
</div>
|
|
<div class="x_content1">
|
|
<div id="graph_bar_group" style="width:100%; height:280px;"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="clearfix"></div>
|
|
<!-- /bar charts group -->
|
|
|
|
<!-- bar charts group -->
|
|
<div class="col-md-6 col-sm-6 col-xs-12">
|
|
<div class="x_panel">
|
|
<div class="x_title">
|
|
<h2>Bar Chart Group <small>Sessions</small></h2>
|
|
<ul class="nav navbar-right panel_toolbox">
|
|
<li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a>
|
|
</li>
|
|
<li class="dropdown">
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"><i class="fa fa-wrench"></i></a>
|
|
<ul class="dropdown-menu" role="menu">
|
|
<li><a href="#">Settings 1</a>
|
|
</li>
|
|
<li><a href="#">Settings 2</a>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
<li><a class="close-link"><i class="fa fa-close"></i></a>
|
|
</li>
|
|
</ul>
|
|
<div class="clearfix"></div>
|
|
</div>
|
|
<div class="x_content2">
|
|
<div id="graphx" style="width:100%; height:300px;"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- /bar charts group -->
|
|
|
|
<!-- pie chart -->
|
|
<div class="col-md-6 col-sm-6 col-xs-12">
|
|
<div class="x_panel">
|
|
<div class="x_title">
|
|
<h2>Pie Chart <small>Sessions</small></h2>
|
|
<ul class="nav navbar-right panel_toolbox">
|
|
<li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a>
|
|
</li>
|
|
<li class="dropdown">
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"><i class="fa fa-wrench"></i></a>
|
|
<ul class="dropdown-menu" role="menu">
|
|
<li><a href="#">Settings 1</a>
|
|
</li>
|
|
<li><a href="#">Settings 2</a>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
<li><a class="close-link"><i class="fa fa-close"></i></a>
|
|
</li>
|
|
</ul>
|
|
<div class="clearfix"></div>
|
|
</div>
|
|
<div class="x_content2">
|
|
<div id="graph_donut" style="width:100%; height:300px;"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- /Pie chart -->
|
|
|
|
<!-- graph area -->
|
|
<div class="col-md-6 col-sm-6 col-xs-12">
|
|
<div class="x_panel">
|
|
<div class="x_title">
|
|
<h2>Graph area <small>Sessions</small></h2>
|
|
<ul class="nav navbar-right panel_toolbox">
|
|
<li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a>
|
|
</li>
|
|
<li class="dropdown">
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"><i class="fa fa-wrench"></i></a>
|
|
<ul class="dropdown-menu" role="menu">
|
|
<li><a href="#">Settings 1</a>
|
|
</li>
|
|
<li><a href="#">Settings 2</a>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
<li><a class="close-link"><i class="fa fa-close"></i></a>
|
|
</li>
|
|
</ul>
|
|
<div class="clearfix"></div>
|
|
</div>
|
|
<div class="x_content2">
|
|
<div id="graph_area" style="width:100%; height:300px;"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- /graph area -->
|
|
|
|
<!-- line graph -->
|
|
<div class="col-md-6 col-sm-6 col-xs-12">
|
|
<div class="x_panel">
|
|
<div class="x_title">
|
|
<h2>Line Graph <small>Sessions</small></h2>
|
|
<ul class="nav navbar-right panel_toolbox">
|
|
<li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a>
|
|
</li>
|
|
<li class="dropdown">
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"><i class="fa fa-wrench"></i></a>
|
|
<ul class="dropdown-menu" role="menu">
|
|
<li><a href="#">Settings 1</a>
|
|
</li>
|
|
<li><a href="#">Settings 2</a>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
<li><a class="close-link"><i class="fa fa-close"></i></a>
|
|
</li>
|
|
</ul>
|
|
<div class="clearfix"></div>
|
|
</div>
|
|
<div class="x_content2">
|
|
<div id="graph_line" style="width:100%; height:300px;"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- /line graph -->
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- /page content -->
|
|
|
|
<!-- footer content -->
|
|
<footer>
|
|
<div class="pull-right">
|
|
Gentelella - Bootstrap Admin Template by <a href="https://colorlib.com">Colorlib</a>
|
|
</div>
|
|
<div class="clearfix"></div>
|
|
</footer>
|
|
<!-- /footer content -->
|
|
</div>
|
|
</div>
|
|
|
|
<!-- jQuery -->
|
|
<script src="../vendors/jquery/dist/jquery.min.js"></script>
|
|
<!-- Bootstrap -->
|
|
<script src="../vendors/bootstrap/dist/js/bootstrap.min.js"></script>
|
|
<!-- FastClick -->
|
|
<script src="../vendors/fastclick/lib/fastclick.js"></script>
|
|
<!-- NProgress -->
|
|
<script src="../vendors/nprogress/nprogress.js"></script>
|
|
<!-- morris.js -->
|
|
<script src="../vendors/raphael/raphael.min.js"></script>
|
|
<script src="../vendors/morris.js/morris.min.js"></script>
|
|
|
|
<!-- Custom Theme Scripts -->
|
|
<script src="js/custom.js"></script>
|
|
|
|
<!-- morris.js -->
|
|
<script>
|
|
$(document).ready(function() {
|
|
Morris.Bar({
|
|
element: 'graph_bar',
|
|
data: [
|
|
{device: 'iPhone 4', geekbench: 380},
|
|
{device: 'iPhone 4S', geekbench: 655},
|
|
{device: 'iPhone 3GS', geekbench: 275},
|
|
{device: 'iPhone 5', geekbench: 1571},
|
|
{device: 'iPhone 5S', geekbench: 655},
|
|
{device: 'iPhone 6', geekbench: 2154},
|
|
{device: 'iPhone 6 Plus', geekbench: 1144},
|
|
{device: 'iPhone 6S', geekbench: 2371},
|
|
{device: 'iPhone 6S Plus', geekbench: 1471},
|
|
{device: 'Other', geekbench: 1371}
|
|
],
|
|
xkey: 'device',
|
|
ykeys: ['geekbench'],
|
|
labels: ['Geekbench'],
|
|
barRatio: 0.4,
|
|
barColors: ['#26B99A', '#34495E', '#ACADAC', '#3498DB'],
|
|
xLabelAngle: 35,
|
|
hideHover: 'auto',
|
|
resize: true
|
|
});
|
|
|
|
Morris.Bar({
|
|
element: 'graph_bar_group',
|
|
data: [
|
|
{"period": "2016-10-01", "licensed": 807, "sorned": 660},
|
|
{"period": "2016-09-30", "licensed": 1251, "sorned": 729},
|
|
{"period": "2016-09-29", "licensed": 1769, "sorned": 1018},
|
|
{"period": "2016-09-20", "licensed": 2246, "sorned": 1461},
|
|
{"period": "2016-09-19", "licensed": 2657, "sorned": 1967},
|
|
{"period": "2016-09-18", "licensed": 3148, "sorned": 2627},
|
|
{"period": "2016-09-17", "licensed": 3471, "sorned": 3740},
|
|
{"period": "2016-09-16", "licensed": 2871, "sorned": 2216},
|
|
{"period": "2016-09-15", "licensed": 2401, "sorned": 1656},
|
|
{"period": "2016-09-10", "licensed": 2115, "sorned": 1022}
|
|
],
|
|
xkey: 'period',
|
|
barColors: ['#26B99A', '#34495E', '#ACADAC', '#3498DB'],
|
|
ykeys: ['licensed', 'sorned'],
|
|
labels: ['Licensed', 'SORN'],
|
|
hideHover: 'auto',
|
|
xLabelAngle: 60,
|
|
resize: true
|
|
});
|
|
|
|
Morris.Bar({
|
|
element: 'graphx',
|
|
data: [
|
|
{x: '2015 Q1', y: 2, z: 3, a: 4},
|
|
{x: '2015 Q2', y: 3, z: 5, a: 6},
|
|
{x: '2015 Q3', y: 4, z: 3, a: 2},
|
|
{x: '2015 Q4', y: 2, z: 4, a: 5}
|
|
],
|
|
xkey: 'x',
|
|
ykeys: ['y', 'z', 'a'],
|
|
barColors: ['#26B99A', '#34495E', '#ACADAC', '#3498DB'],
|
|
hideHover: 'auto',
|
|
labels: ['Y', 'Z', 'A'],
|
|
resize: true
|
|
}).on('click', function (i, row) {
|
|
console.log(i, row);
|
|
});
|
|
|
|
Morris.Area({
|
|
element: 'graph_area',
|
|
data: [
|
|
{period: '2014 Q1', iphone: 2666, ipad: null, itouch: 2647},
|
|
{period: '2014 Q2', iphone: 2778, ipad: 2294, itouch: 2441},
|
|
{period: '2014 Q3', iphone: 4912, ipad: 1969, itouch: 2501},
|
|
{period: '2014 Q4', iphone: 3767, ipad: 3597, itouch: 5689},
|
|
{period: '2015 Q1', iphone: 6810, ipad: 1914, itouch: 2293},
|
|
{period: '2015 Q2', iphone: 5670, ipad: 4293, itouch: 1881},
|
|
{period: '2015 Q3', iphone: 4820, ipad: 3795, itouch: 1588},
|
|
{period: '2015 Q4', iphone: 15073, ipad: 5967, itouch: 5175},
|
|
{period: '2016 Q1', iphone: 10687, ipad: 4460, itouch: 2028},
|
|
{period: '2016 Q2', iphone: 8432, ipad: 5713, itouch: 1791}
|
|
],
|
|
xkey: 'period',
|
|
ykeys: ['iphone', 'ipad', 'itouch'],
|
|
lineColors: ['#26B99A', '#34495E', '#ACADAC', '#3498DB'],
|
|
labels: ['iPhone', 'iPad', 'iPod Touch'],
|
|
pointSize: 2,
|
|
hideHover: 'auto',
|
|
resize: true
|
|
});
|
|
|
|
Morris.Donut({
|
|
element: 'graph_donut',
|
|
data: [
|
|
{label: 'Jam', value: 25},
|
|
{label: 'Frosted', value: 40},
|
|
{label: 'Custard', value: 25},
|
|
{label: 'Sugar', value: 10}
|
|
],
|
|
colors: ['#26B99A', '#34495E', '#ACADAC', '#3498DB'],
|
|
formatter: function (y) {
|
|
return y + "%";
|
|
},
|
|
resize: true
|
|
});
|
|
|
|
Morris.Line({
|
|
element: 'graph_line',
|
|
xkey: 'year',
|
|
ykeys: ['value'],
|
|
labels: ['Value'],
|
|
hideHover: 'auto',
|
|
lineColors: ['#26B99A', '#34495E', '#ACADAC', '#3498DB'],
|
|
data: [
|
|
{year: '2012', value: 20},
|
|
{year: '2013', value: 10},
|
|
{year: '2014', value: 5},
|
|
{year: '2015', value: 5},
|
|
{year: '2016', value: 20}
|
|
],
|
|
resize: true
|
|
});
|
|
|
|
$MENU_TOGGLE.on('click', function() {
|
|
$(window).resize();
|
|
});
|
|
});
|
|
</script>
|
|
<!-- /morris.js -->
|
|
</body>
|
|
</html> |