Просмотр архива 3X-UI bot
Файл bot/module/static/pages/jquery.charts-sparkline.js
Вес запакованого файла 986b (986 b)
Вес распакованого файла: 3.5Kb (3604 b)
Метод сжатия: 8
Вес запакованого файла 986b (986 b)
Вес распакованого файла: 3.5Kb (3604 b)
Метод сжатия: 8
/*
Template Name: Amezia - Bootstrap 4 Admin Dashboard
Author: Themesbrand
File: Sparkline chart
*/
$(document).ready(function() {
var SparklineCharts = function() {
$('#sparkline1').sparkline([20, 40, 30], {
type: 'pie',
height: '100',
resize: true,
sliceColors: ['#44a2d2', '#98d4ce', '#e6edf3']
});
$("#sparkline2").sparkline([5,6,2,8,9,4,7,10,11,12,10,4,7,10], {
type: 'bar',
height: '100',
barWidth: 10,
barSpacing: 7,
barColor: '#44a2d2'
});
$('#sparkline3').sparkline([5, 6, 2, 9, 4, 7, 10, 12,4,7,10], {
type: 'bar',
height: '100',
barWidth: '10',
resize: true,
barSpacing: '7',
barColor: '#198876'
});
$('#sparkline3').sparkline([5, 6, 2, 9, 4, 7, 10, 12,4,7,10], {
type: 'line',
height: '100',
lineColor: '#8d6e63',
fillColor: 'transparent',
composite: true,
lineWidth: 2,
highlightLineColor: 'rgba(0,0,0,.1)',
highlightSpotColor: 'rgba(0,0,0,.2)'
});
$("#sparkline4").sparkline([0, 23, 43, 35, 44, 45, 56, 37, 40, 45, 56, 7, 10], {
type: 'line',
width: '100%',
height: '100',
lineColor: '#d8476f',
fillColor: 'transparent',
spotColor: '#5468da',
lineWidth: 2,
minSpotColor: undefined,
maxSpotColor: undefined,
highlightSpotColor: undefined,
highlightLineColor: undefined
});
$('#sparkline5').sparkline([15, 23, 55, 35, 54, 45, 66, 47, 30], {
type: 'line',
width: '100%',
height: '100',
chartRangeMax: 50,
resize: true,
lineColor: '#ea553d',
fillColor: 'rgba(234, 85, 61, 0.3)',
highlightLineColor: 'rgba(0,0,0,.1)',
highlightSpotColor: 'rgba(0,0,0,.2)',
});
$('#sparkline5').sparkline([0, 13, 10, 14, 15, 10, 18, 20, 0], {
type: 'line',
width: '100%',
height: '100',
chartRangeMax: 40,
lineColor: '#3bc3e9',
fillColor: 'rgba(59, 195, 233, 0.3)',
composite: true,
resize: true,
highlightLineColor: 'rgba(0,0,0,.1)',
highlightSpotColor: 'rgba(0,0,0,.2)',
});
$("#sparkline6").sparkline([4, 6, 7, 7, 4, 3, 2, 1, 4, 4, 5, 6, 3, 4, 5, 8, 7, 6, 9, 3, 2, 4, 1, 5, 6, 4, 3, 7], {
type: 'discrete',
width: '250',
height: '100',
lineColor: '#ffffff'
});
$('#sparkline7').sparkline([10,12,12,9,7], {
type: 'bullet',
width: '100%',
height: '100',
targetColor: '#707070',
performanceColor: '#4ac18e',
});
$('#sparkline8').sparkline([4,27,34,52,54,59,61,68,78,82,85,87,91,93,100], {
type: 'box',
width: '100%',
height: '100',
boxLineColor: '#6d60b0',
boxFillColor: '#f1f1f1',
whiskerColor: '#6d60b0',
outlierLineColor: '#6d60b0',
medianColor: '#6d60b0',
targetColor: '#6d60b0'
});
$('#sparkline9').sparkline([1,1,0,1,-1,-1,1,-1,0,0,1,1], {
height: '100',
width: '100%',
type: 'tristate',
posBarColor: '#009688',
negBarColor: '#8d6e63',
zeroBarColor: '#0000ff',
barWidth: 8,
barSpacing: 3,
zeroAxis: false
});
}
var sparkResize;
$(window).resize(function(e) {
clearTimeout(sparkResize);
sparkResize = setTimeout(SparklineCharts, 500);
});
SparklineCharts();
});
Онлайн: 2