| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360 |
- /* Sparklines charts */
- $(function() {
- "use strict";
- $('.sparkbar').sparkline('html', {
- type: 'bar',
- disableHiddenCheck: false,
- width: '36px',
- height: '36px'
- });
- });
- /* Sparklines */
- $(function() {
- "use strict";
- $('.bar-sparkline-btn').sparkline([
- [3, 5],
- [4, 7],
- [2, 5],
- [3, 5],
- [4, 7],
- [4, 7],
- [5, 7],
- [2, 7],
- [3, 5]
- ], {
- type: 'bar',
- height: '53px',
- barWidth: '5px',
- barSpacing: '2px'
- });
- });
- $(function() {
- "use strict";
- $('.bar-sparkline-btn-2').sparkline([
- [3, 5],
- [4, 7],
- [2, 5],
- [3, 5],
- [4, 7],
- [4, 7],
- [5, 7],
- [2, 7],
- [3, 5]
- ], {
- type: 'bar',
- height: '40px',
- barWidth: '3px',
- barSpacing: '2px'
- });
- });
- $(function() {
- "use strict";
- $('.bar-sparkline').sparkline([
- [4, 8],
- [2, 7],
- [2, 6],
- [2, 7],
- [3, 5],
- [2, 7],
- [2, 6],
- [2, 7],
- [3, 5],
- [4, 7],
- [2, 5],
- [3, 5],
- [4, 7],
- [4, 7],
- [5, 7],
- [4, 8],
- [2, 7],
- [2, 6],
- [2, 7],
- [3, 5]
- ], {
- type: 'bar',
- height: '35px',
- barWidth: '5px',
- barSpacing: '2px'
- });
- });
- $(function() {
- "use strict";
- $('.bar-sparkline-2').sparkline('html', {
- type: 'bar',
- barColor: 'black',
- height: '35px',
- barWidth: '5px',
- barSpacing: '2px'
- });
- });
- $(function() {
- "use strict";
- $('.tristate-sparkline').sparkline('html', {
- type: 'tristate',
- barColor: 'black',
- height: '35px',
- barWidth: '5px',
- barSpacing: '2px'
- });
- });
- $(function() {
- "use strict";
- $('.discrete-sparkline').sparkline('html', {
- type: 'discrete',
- barColor: 'black',
- height: '45px',
- barSpacing: '4px'
- });
- });
- $(function() {
- "use strict";
- $('.pie-sparkline').sparkline('html', {
- type: 'pie',
- barColor: 'black',
- height: '45px',
- width: '45px'
- });
- });
- $(function() {
- "use strict";
- $(".pie-sparkline-alt").sparkline('html', {
- type: 'pie',
- width: '100',
- height: '100',
- sliceColors: ['#EFEFEF', '#5BCCF6', '#FA7753'],
- borderWidth: 0
- });
- });
- $(function() {
- "use strict";
- var myvalues = [10, 8, 5, 7, 4, 4, 1];
- $('.dynamic-sparkline').sparkline(myvalues, {
- height: '35px',
- width: '135px'
- });
- });
- $(function() {
- "use strict";
- var myvalues = [10, 8, 5, 7, 4, 4, 1];
- $('.dynamic-sparkline-5').sparkline(myvalues, {
- height: '57px',
- width: '100px'
- });
- });
- $(function() {
- "use strict";
- $('.tristate-sparkline-2').sparkline('html', {
- type: 'tristate',
- posBarColor: '#ec6a00',
- negBarColor: '#ffc98a',
- zeroBarColor: '#000000',
- height: '35px',
- barWidth: '5px',
- barSpacing: '2px'
- });
- });
- $(function() {
- "use strict";
- $(".infobox-sparkline").sparkline([
- [3, 5],
- [4, 7],
- [2, 5],
- [3, 5],
- [4, 7],
- [4, 7],
- [5, 7],
- [2, 7],
- [3, 5]
- ], {
- type: 'bar',
- height: '53',
- barWidth: 5,
- barSpacing: 2,
- zeroAxis: false,
- barColor: '#ccc',
- negBarColor: '#ddd',
- zeroColor: '#ccc',
- stackedBarColor: ['#871010', '#ffebeb']
- });
- });
- $(function() {
- "use strict";
- $(".infobox-sparkline-2").sparkline([
- [3, 5],
- [4, 7],
- [2, 5],
- [3, 5],
- [4, 7],
- [4, 7],
- [5, 7],
- [2, 7],
- [3, 5]
- ], {
- type: 'bar',
- height: '53',
- barWidth: 5,
- barSpacing: 2,
- zeroAxis: false,
- barColor: '#ccc',
- negBarColor: '#ddd',
- zeroColor: '#ccc',
- stackedBarColor: ['#000000', '#cccccc']
- });
- });
- $(function() {
- "use strict";
- $(".infobox-sparkline-pie").sparkline([1.5, 2.5, 2], {
- type: 'pie',
- width: '57',
- height: '57',
- sliceColors: ['#0d4f26', '#00712b', '#2eee76'],
- offset: 0,
- borderWidth: 0,
- borderColor: '#000000'
- });
- });
- $(function() {
- "use strict";
- $(".infobox-sparkline-tri").sparkline([1, 1, 0, 1, -1, -1, 1, -1, 0, 0, 2, 1], {
- type: 'tristate',
- height: '53',
- posBarColor: '#1bb1fc',
- negBarColor: '#3d57ed',
- zeroBarColor: '#000000',
- barWidth: 5
- });
- });
- $(function() {
- "use strict";
- $(".sprk-1").sparkline('html', {
- type: 'line',
- width: '50%',
- height: '65',
- lineColor: '#b2b2b2',
- fillColor: '#ffffff',
- lineWidth: 1,
- spotColor: '#0065ff',
- minSpotColor: '#0065ff',
- maxSpotColor: '#0065ff',
- spotRadius: 4
- });
- });
- $(function() {
- "use strict";
- $(".sparkline-big").sparkline('html', {
- type: 'line',
- width: '85%',
- height: '80',
- highlightLineColor: '#ffffff',
- lineColor: '#ffffff',
- fillColor: 'transparent',
- lineWidth: 1,
- spotColor: '#ffffff',
- minSpotColor: '#ffffff',
- maxSpotColor: '#ffffff',
- highlightSpotColor: '#000000',
- spotRadius: 4
- });
- });
- $(function() {
- "use strict";
- $(".sparkline-big-alt").sparkline('html', {
- type: 'line',
- width: '90%',
- height: '110',
- highlightLineColor: '#accfff',
- lineColor: 'rgba(0,0,0,0.1)',
- fillColor: '#fcfeff',
- lineWidth: 1,
- spotColor: 'transparent',
- minSpotColor: 'transparent',
- maxSpotColor: 'transparent',
- highlightSpotColor: '#65a6ff',
- spotRadius: 6
- });
- });
- $(function() {
- "use strict";
- $(".sparkline-bar-big").sparkline('html', {
- type: 'bar',
- width: '85%',
- height: '90',
- barWidth: 6,
- barSpacing: 2,
- zeroAxis: false,
- barColor: '#ffffff',
- negBarColor: '#ffffff'
- });
- });
- $(function() {
- "use strict";
- $(".sparkline-bar-big-color").sparkline('html', {
- type: 'bar',
- height: '90',
- width: '85%',
- barWidth: 6,
- barSpacing: 2,
- zeroAxis: false,
- barColor: '#9CD159',
- negBarColor: '#9CD159'
- });
- });
- $(function() {
- "use strict";
- $(".sparkline-bar-big-color-2").sparkline([405, 450, 302, 405, 230, 311, 405, 342, 579, 405, 450, 302, 183, 579, 180, 311, 405, 342, 579, 405, 450, 302, 405, 230, 311, 405, 342, 579, 405, 450, 302, 405, 342, 432, 405, 450, 302, 183, 579, 180, 311, 405, 342, 579, 183, 579, 180, 311, 405, 342, 579, 405, 450, 302, 405, 230, 311, 405, 342, 579, 405, 450, 302, 405, 342, 432, 405, 450, 302, 183, 579, 180, 311, 405, 342, 579, 240, 180, 311, 450, 302, 370, 210], {
- type: 'bar',
- height: '88',
- width: '85%',
- barWidth: 6,
- barSpacing: 2,
- zeroAxis: false,
- barColor: '#9CD159',
- negBarColor: '#9CD159'
- });
- });
|