mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-13 19:51:30 +00:00
updated streamline-setup v2
This commit is contained in:
+84
@@ -0,0 +1,84 @@
|
||||
// Morris bar chart
|
||||
Morris.Bar({
|
||||
element: 'morris-bar-chart',
|
||||
data: [{
|
||||
y: '2006',
|
||||
Sale: 100,
|
||||
Rent: 90,
|
||||
c: 60
|
||||
}, {
|
||||
y: '2007',
|
||||
Sale: 75,
|
||||
Rent: 65,
|
||||
c: 40
|
||||
}, {
|
||||
y: '2008',
|
||||
Sale: 50,
|
||||
Rent: 40,
|
||||
c: 30
|
||||
}, {
|
||||
y: '2009',
|
||||
Sale: 75,
|
||||
Rent: 65,
|
||||
c: 40
|
||||
}, {
|
||||
y: '2010',
|
||||
Sale: 50,
|
||||
Rent: 40,
|
||||
c: 30
|
||||
}, {
|
||||
y: '2011',
|
||||
Sale: 75,
|
||||
Rent: 65,
|
||||
c: 40
|
||||
},{
|
||||
y: '2012',
|
||||
Sale: 75,
|
||||
Rent: 65,
|
||||
c: 40
|
||||
},{
|
||||
y: '2013',
|
||||
Sale: 100,
|
||||
Rent: 90,
|
||||
c: 40
|
||||
}],
|
||||
xkey: 'y',
|
||||
ykeys: ['Sale', 'Rent', 'c'],
|
||||
labels: ['For-sale', 'For-rent', 'All'],
|
||||
barColors:['#b8edf0', '#b4c1d7', '#fcc9ba'],
|
||||
hideHover: 'auto',
|
||||
|
||||
gridLineColor: '#eef0f2',
|
||||
resize: true
|
||||
});
|
||||
|
||||
// This is for the sparkline chart
|
||||
|
||||
var sparklineLogin = function() {
|
||||
|
||||
$('#sparkline2dash').sparkline([6, 10, 9, 11, 9, 10, 12], {
|
||||
type: 'bar',
|
||||
height: '154',
|
||||
barWidth: '4',
|
||||
resize: true,
|
||||
barSpacing: '10',
|
||||
barColor: '#25a6f7'
|
||||
});
|
||||
$('#sales1').sparkline([6, 10, 9, 11, 9, 10, 12], {
|
||||
type: 'bar',
|
||||
height: '154',
|
||||
barWidth: '4',
|
||||
resize: true,
|
||||
barSpacing: '10',
|
||||
barColor: '#fff'
|
||||
});
|
||||
|
||||
}
|
||||
var sparkResize;
|
||||
|
||||
$(window).resize(function(e) {
|
||||
clearTimeout(sparkResize);
|
||||
sparkResize = setTimeout(sparklineLogin, 500);
|
||||
});
|
||||
sparklineLogin();
|
||||
|
||||
Reference in New Issue
Block a user