File: //home/artinside/www/lhh/admin-assets/js/sparkline-chart.js
var Script = function () {
$("#pie-chart").sparkline([2,1,1,1], {
type: 'pie',
width: '100',
height: '100',
borderColor: '#00bf00',
sliceColors: ['#41CAC0', '#A8D76F', '#F8D347', '#EF6F66']
// tooltipFormat: '<span style="display:block; padding:0px 10px 12px 0px;">' +
// '<span style="color: {{color}}">●</span> {{offset:names}} ({{percent.1}}%)</span>'
});
//work progress bar
$("#work-progress1").sparkline([5,6,7,5,9,6,4], {
type: 'bar',
height: '20',
barWidth: 5,
barSpacing: 2,
barColor: '#5fbf00'
// tooltipFormat: '<span style="display:block; padding:0px 10px 12px 0px;">' +
// '<span style="color: {{color}}">●</span> {{offset:names}} ({{percent.1}}%)</span>'
});
$("#work-progress2").sparkline([3,2,5,8,4,7,5], {
type: 'bar',
height: '22',
barWidth: 5,
barSpacing: 2,
barColor: '#58c9f1'
// tooltipFormat: '<span style="display:block; padding:0px 10px 12px 0px;">' +
// '<span style="color: {{color}}">●</span> {{offset:names}} ({{percent.1}}%)</span>'
});
$("#work-progress3").sparkline([1,6,9,3,4,8,5], {
type: 'bar',
height: '22',
barWidth: 5,
barSpacing: 2,
barColor: '#8075c4'
// tooltipFormat: '<span style="display:block; padding:0px 10px 12px 0px;">' +
// '<span style="color: {{color}}">●</span> {{offset:names}} ({{percent.1}}%)</span>'
});
$("#work-progress4").sparkline([9,4,9,6,7,4,3], {
type: 'bar',
height: '22',
barWidth: 5,
barSpacing: 2,
barColor: '#ff6c60'
// tooltipFormat: '<span style="display:block; padding:0px 10px 12px 0px;">' +
// '<span style="color: {{color}}">●</span> {{offset:names}} ({{percent.1}}%)</span>'
});
$("#work-progress5").sparkline([6,8,5,7,6,8,3], {
type: 'bar',
height: '22',
barWidth: 5,
barSpacing: 2,
barColor: '#41cac0'
// tooltipFormat: '<span style="display:block; padding:0px 10px 12px 0px;">' +
// '<span style="color: {{color}}">●</span> {{offset:names}} ({{percent.1}}%)</span>'
});
$("#pie-chart2").sparkline([2,1,1,1], {
type: 'pie',
width: '250',
height: '125',
sliceColors: ['#41CAC0', '#A8D76F', '#F8D347', '#EF6F66']
// tooltipFormat: '<span style="display:block; padding:0px 10px 12px 0px;">' +
// '<span style="color: {{color}}">●</span> {{offset:names}} ({{percent.1}}%)</span>'});
});
}();