src/main/webapp/resources/js/custom-morris.js
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
(function ($) {
"use strict"; // Start of use strict
//line Morris
var lineMorris = new Morris.Line({
element: 'lineMorris',
resize: true,
data: [
{ y: '2016 Q1', Appointments: 20 },
{ y: '2016 Q2', Appointments: 15 },
{ y: '2016 Q3', Appointments: 34 },
{ y: '2016 Q4', Appointments: 7 },
{ y: '2017 Q1', Appointments: 31 },
{ y: '2017 Q2', Appointments: 18 },
{ y: '2017 Q3', Appointments: 70 },
{ y: '2017 Q4', Appointments: 32 },
{ y: '2018 Q1', Appointments: 15 },
{ y: '2018 Q2', Appointments: 53 }
],
xkey: 'y',
ykeys: ['Appointments'],
labels: ['Appointments'],
gridLineColor: '#eef0f2',
lineColors: ['#E57498'],
lineWidth: 2,
hideHover: 'auto'
});
//barmorris
var ctx = document.getElementById("barMorris");
if (ctx === null) return;
var chart = Morris.Bar({
element: 'barMorris',
data: [{
y: '2012',
a: 20
}, {
y: '2013',
a: 45
}, {
y: '2014',
a: 56
}, {
y: '2015',
a: 35
}, {
y: '2016',
a: 18
}, {
y: '2017',
a: 28
}, {
y: '2018',
a: 20
}],
xkey: 'y',
ykeys: ['a'],
labels: ['Patients'],
barColors: ['#FF7D00'],
barOpacity: 1,
barSizeRatio: 0.5,
后面还有 83 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
