infobox-1.js 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. $(function () {
  2. initCounters();
  3. initCharts();
  4. });
  5. //Widgets count plugin
  6. function initCounters() {
  7. $('.count-to').countTo();
  8. }
  9. //Charts
  10. function initCharts() {
  11. //Chart Bar
  12. $('.chart.chart-bar').sparkline(undefined, {
  13. type: 'bar',
  14. barColor: '#fff',
  15. negBarColor: '#fff',
  16. barWidth: '4px',
  17. height: '34px'
  18. });
  19. //Chart Pie
  20. $('.chart.chart-pie').sparkline(undefined, {
  21. type: 'pie',
  22. height: '50px',
  23. sliceColors: ['rgba(255,255,255,0.70)', 'rgba(255,255,255,0.85)', 'rgba(255,255,255,0.95)', 'rgba(255,255,255,1)']
  24. });
  25. //Chart Line
  26. $('.chart.chart-line').sparkline(undefined, {
  27. type: 'line',
  28. width: '60px',
  29. height: '45px',
  30. lineColor: '#fff',
  31. lineWidth: 1.3,
  32. fillColor: 'rgba(0,0,0,0)',
  33. spotColor: 'rgba(255,255,255,0.40)',
  34. maxSpotColor: 'rgba(255,255,255,0.40)',
  35. minSpotColor: 'rgba(255,255,255,0.40)',
  36. spotRadius: 3,
  37. highlightSpotColor: '#fff'
  38. });
  39. }