scores.js 784 B

12345678910111213141516171819202122232425262728293031
  1. $(function () {
  2. $('#scores-table').dataTable({
  3. "bAutoWidth": true,
  4. "lengthMenu": [[ 10, 25, 50, 75, -1], [10, 25, 50, 75, "All"]],
  5. "pageLength": 9,
  6. "order": [ 3, 'desc' ]
  7. });
  8. var scores = new Morris.Bar({
  9. element: 'scores-chart',
  10. resize: true,
  11. data: scores_data,
  12. barColors: ['#efefef'],
  13. xkey: 'y',
  14. ykeys: ['sc'],
  15. labels: ['Score'],
  16. hideHover: 'auto',
  17. hoverCallback: function(index, options, content){
  18. return(content + "\n" + scores_names_data[index]);
  19. },
  20. gridTextColor: "#fff",
  21. gridStrokeWidth: 0.4,
  22. pointSize: 4,
  23. pointStrokeColors: ["#efefef"],
  24. gridLineColor: "#efefef",
  25. gridTextFamily: "Open Sans",
  26. gridTextSize: 10
  27. });
  28. });