mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-11 18:51:31 +00:00
The official image from streamline does not currently work for the arm64 platform. As a temporary measure, the source code and docker build scripts have been lifted from the official images and are used to build locally. Some additional modifications are made to reduce overall image size, these are documented in docker/README.md
85 lines
1.9 KiB
JavaScript
Executable File
Vendored
85 lines
1.9 KiB
JavaScript
Executable File
Vendored
// 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();
|
|
|