You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
1.6 KiB

  1. {% extends "admin/admin_base.html" %} {% load static %} {% block content-area %}
  2. <div class="columns">
  3. <div class="column is-12">
  4. <div class="card">
  5. <header class="card-header">
  6. <p class="card-header-title">
  7. Label stats
  8. </p>
  9. <a href="#" class="card-header-icon" aria-label="more options">
  10. <span class="icon">
  11. <i class="fas fa-angle-down" aria-hidden="true"></i>
  12. </span>
  13. </a>
  14. </header>
  15. <div class="card-content columns">
  16. <div class="column is-8">
  17. <line-chart :chart-data="labelData"></line-chart>
  18. </div>
  19. <div class="column is-4">
  20. <h2 class="subtitle">Annotation Progress</h2>
  21. <doughnut-chart :chart-data="progressData"></doughnut-chart>
  22. </div>
  23. </div>
  24. </div>
  25. </div>
  26. </div>
  27. <div class="columns">
  28. <div class="column is-8">
  29. <div class="card">
  30. <header class="card-header">
  31. <p class="card-header-title">
  32. User stats
  33. </p>
  34. <a href="#" class="card-header-icon" aria-label="more options">
  35. <span class="icon">
  36. <i class="fas fa-angle-down" aria-hidden="true"></i>
  37. </span>
  38. </a>
  39. </header>
  40. <div class="card-content">
  41. <line-chart :chart-data="userData"></line-chart>
  42. </div>
  43. </div>
  44. </div>
  45. </div>
  46. {% endblock %} {% block footer %}
  47. <!--<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.7.1/Chart.min.js"></script>
  48. <script src="https://unpkg.com/vue-chartjs/dist/vue-chartjs.min.js"></script>-->
  49. <script type="text/javascript" src="{% static 'bundle/stats.js' %}"></script>
  50. {% endblock %}