tracking.mdx 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. ---
  2. title: Tracking
  3. summary: Component for visualising activity logs or other monitoring-related data. With its ability to show data in a visually appealing and easily understandable way, the tracking component is an essential tool for any organization that relies on data monitoring and analysis to optimize performance and user experience.
  4. description: Monitor data activity visually.
  5. ---
  6. ## Basic example
  7. ```html example centered columns={1}
  8. <div class="tracking">
  9. <div class="tracking-block bg-success" data-bs-toggle="tooltip" data-bs-placement="top" title="Operational"></div>
  10. <div class="tracking-block bg-success" data-bs-toggle="tooltip" data-bs-placement="top" title="Operational"></div>
  11. <div class="tracking-block bg-success" data-bs-toggle="tooltip" data-bs-placement="top" title="Operational"></div>
  12. <div class="tracking-block bg-success" data-bs-toggle="tooltip" data-bs-placement="top" title="Operational"></div>
  13. <div class="tracking-block bg-danger" data-bs-toggle="tooltip" data-bs-placement="top" title="Downtime"></div>
  14. <div class="tracking-block bg-success" data-bs-toggle="tooltip" data-bs-placement="top" title="Operational"></div>
  15. <div class="tracking-block bg-success" data-bs-toggle="tooltip" data-bs-placement="top" title="Operational"></div>
  16. <div class="tracking-block bg-success" data-bs-toggle="tooltip" data-bs-placement="top" title="Operational"></div>
  17. <div class="tracking-block bg-success" data-bs-toggle="tooltip" data-bs-placement="top" title="Operational"></div>
  18. <div class="tracking-block bg-success" data-bs-toggle="tooltip" data-bs-placement="top" title="Operational"></div>
  19. <div class="tracking-block bg-success" data-bs-toggle="tooltip" data-bs-placement="top" title="Operational"></div>
  20. <div class="tracking-block bg-success" data-bs-toggle="tooltip" data-bs-placement="top" title="Operational"></div>
  21. <div class="tracking-block bg-success" data-bs-toggle="tooltip" data-bs-placement="top" title="Operational"></div>
  22. <div class="tracking-block bg-warning" data-bs-toggle="tooltip" data-bs-placement="top" title="Big load"></div>
  23. <div class="tracking-block bg-success" data-bs-toggle="tooltip" data-bs-placement="top" title="Operational"></div>
  24. <div class="tracking-block bg-success" data-bs-toggle="tooltip" data-bs-placement="top" title="Operational"></div>
  25. <div class="tracking-block bg-success" data-bs-toggle="tooltip" data-bs-placement="top" title="Operational"></div>
  26. <div class="tracking-block bg-danger" data-bs-toggle="tooltip" data-bs-placement="top" title="Downtime"></div>
  27. <div class="tracking-block bg-success" data-bs-toggle="tooltip" data-bs-placement="top" title="Operational"></div>
  28. <div class="tracking-block bg-success" data-bs-toggle="tooltip" data-bs-placement="top" title="Operational"></div>
  29. <div class="tracking-block bg-success" data-bs-toggle="tooltip" data-bs-placement="top" title="Operational"></div>
  30. <div class="tracking-block" data-bs-toggle="tooltip" data-bs-placement="top" title="No data"></div>
  31. <div class="tracking-block" data-bs-toggle="tooltip" data-bs-placement="top" title="No data"></div>
  32. <div class="tracking-block bg-success" data-bs-toggle="tooltip" data-bs-placement="top" title="Operational"></div>
  33. <div class="tracking-block bg-success" data-bs-toggle="tooltip" data-bs-placement="top" title="Operational"></div>
  34. <div class="tracking-block bg-success" data-bs-toggle="tooltip" data-bs-placement="top" title="Operational"></div>
  35. <div class="tracking-block bg-success" data-bs-toggle="tooltip" data-bs-placement="top" title="Operational"></div>
  36. <div class="tracking-block bg-success" data-bs-toggle="tooltip" data-bs-placement="top" title="Operational"></div>
  37. <div class="tracking-block bg-success" data-bs-toggle="tooltip" data-bs-placement="top" title="Operational"></div>
  38. <div class="tracking-block bg-success" data-bs-toggle="tooltip" data-bs-placement="top" title="Operational"></div>
  39. </div>
  40. ```
  41. ```html
  42. <div class="tracking">
  43. ...
  44. <div class="tracking-block bg-success" data-bs-toggle="tooltip" data-bs-placement="top" title="Operational"></div>
  45. <div class="tracking-block" data-bs-toggle="tooltip" data-bs-placement="top" title="No data"></div>
  46. <div class="tracking-block bg-failed" data-bs-toggle="tooltip" data-bs-placement="top" title="Operational"></div>
  47. ...
  48. </div>
  49. ```
  50. ## Tracking inside a card
  51. You can add a tracking component inside the cards to give your reports a fresh look and visualise the status of your system in an attractive way. If you want to read how to add other elements to card it is worth reading [documentation of card](/docs/components/cards).
  52. ```html example centered columns={1}
  53. <div class="card">
  54. <div class="card-body">
  55. <div class="d-flex align-items-center">
  56. <div class="subheader">Status monitoring</div>
  57. <div class="ms-auto lh-1">
  58. <div class="dropdown">
  59. <a class="dropdown-toggle text-secondary" href="#" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Current month</a>
  60. <div class="dropdown-menu dropdown-menu-end">
  61. <a class="dropdown-item active" href="#">Current month</a>
  62. <a class="dropdown-item" href="#">Last month</a>
  63. <a class="dropdown-item" href="#">Last 3 months</a>
  64. </div>
  65. </div>
  66. </div>
  67. </div>
  68. <div class="d-flex align-items-baseline">
  69. <div class="h1 mb-3 me-2">99.5%</div>
  70. <div class="me-auto">
  71. <span class="text-green d-inline-flex align-items-center lh-1">
  72. 2%
  73. <svg xmlns="http://www.w3.org/2000/svg" class="icon ms-1" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
  74. <path stroke="none" d="M0 0h24v24H0z" fill="none" />
  75. <polyline points="3 17 9 11 13 15 21 7" />
  76. <polyline points="14 7 21 7 21 14" />
  77. </svg>
  78. </span>
  79. </div>
  80. </div>
  81. <div class="mt-2">
  82. <div class="tracking">
  83. <div class="tracking-block bg-success" data-bs-toggle="tooltip" data-bs-placement="top" title="Operational"></div>
  84. <div class="tracking-block bg-success" data-bs-toggle="tooltip" data-bs-placement="top" title="Operational"></div>
  85. <div class="tracking-block bg-success" data-bs-toggle="tooltip" data-bs-placement="top" title="Operational"></div>
  86. <div class="tracking-block bg-success" data-bs-toggle="tooltip" data-bs-placement="top" title="Operational"></div>
  87. <div class="tracking-block bg-danger" data-bs-toggle="tooltip" data-bs-placement="top" title="Downtime"></div>
  88. <div class="tracking-block bg-success" data-bs-toggle="tooltip" data-bs-placement="top" title="Operational"></div>
  89. <div class="tracking-block bg-success" data-bs-toggle="tooltip" data-bs-placement="top" title="Operational"></div>
  90. <div class="tracking-block bg-success" data-bs-toggle="tooltip" data-bs-placement="top" title="Operational"></div>
  91. <div class="tracking-block bg-success" data-bs-toggle="tooltip" data-bs-placement="top" title="Operational"></div>
  92. <div class="tracking-block bg-success" data-bs-toggle="tooltip" data-bs-placement="top" title="Operational"></div>
  93. <div class="tracking-block bg-success" data-bs-toggle="tooltip" data-bs-placement="top" title="Operational"></div>
  94. <div class="tracking-block bg-success" data-bs-toggle="tooltip" data-bs-placement="top" title="Operational"></div>
  95. <div class="tracking-block bg-success" data-bs-toggle="tooltip" data-bs-placement="top" title="Operational"></div>
  96. <div class="tracking-block bg-warning" data-bs-toggle="tooltip" data-bs-placement="top" title="Big load"></div>
  97. <div class="tracking-block bg-success" data-bs-toggle="tooltip" data-bs-placement="top" title="Operational"></div>
  98. <div class="tracking-block bg-success" data-bs-toggle="tooltip" data-bs-placement="top" title="Operational"></div>
  99. <div class="tracking-block bg-success" data-bs-toggle="tooltip" data-bs-placement="top" title="Operational"></div>
  100. <div class="tracking-block bg-danger" data-bs-toggle="tooltip" data-bs-placement="top" title="Downtime"></div>
  101. <div class="tracking-block bg-success" data-bs-toggle="tooltip" data-bs-placement="top" title="Operational"></div>
  102. <div class="tracking-block bg-success" data-bs-toggle="tooltip" data-bs-placement="top" title="Operational"></div>
  103. <div class="tracking-block bg-success" data-bs-toggle="tooltip" data-bs-placement="top" title="Operational"></div>
  104. <div class="tracking-block" data-bs-toggle="tooltip" data-bs-placement="top" title="No data"></div>
  105. <div class="tracking-block" data-bs-toggle="tooltip" data-bs-placement="top" title="No data"></div>
  106. <div class="tracking-block bg-success" data-bs-toggle="tooltip" data-bs-placement="top" title="Operational"></div>
  107. <div class="tracking-block bg-success" data-bs-toggle="tooltip" data-bs-placement="top" title="Operational"></div>
  108. <div class="tracking-block bg-success" data-bs-toggle="tooltip" data-bs-placement="top" title="Operational"></div>
  109. <div class="tracking-block bg-success" data-bs-toggle="tooltip" data-bs-placement="top" title="Operational"></div>
  110. <div class="tracking-block bg-success" data-bs-toggle="tooltip" data-bs-placement="top" title="Operational"></div>
  111. <div class="tracking-block bg-success" data-bs-toggle="tooltip" data-bs-placement="top" title="Operational"></div>
  112. <div class="tracking-block bg-success" data-bs-toggle="tooltip" data-bs-placement="top" title="Operational"></div>
  113. </div>
  114. </div>
  115. </div>
  116. </div>
  117. ```
  118. ```html
  119. <div class="card">
  120. <div class="card-body">
  121. <div class="d-flex align-items-center">
  122. <div class="subheader">Status monitoring</div>
  123. <div class="ms-auto lh-1">
  124. <div class="dropdown">
  125. <a class="dropdown-toggle text-secondary" href="#" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Current month</a>
  126. <div class="dropdown-menu dropdown-menu-end">
  127. <a class="dropdown-item active" href="#">Current month</a>
  128. <a class="dropdown-item" href="#">Last month</a>
  129. <a class="dropdown-item" href="#">Last 3 months</a>
  130. </div>
  131. </div>
  132. </div>
  133. </div>
  134. <div class="d-flex align-items-baseline">
  135. <div class="h1 mb-3 me-2">99.5%</div>
  136. <div class="me-auto">
  137. <span class="text-green d-inline-flex align-items-center lh-1">
  138. 2%
  139. <svg xmlns="http://www.w3.org/2000/svg" class="icon ms-1" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
  140. <path stroke="none" d="M0 0h24v24H0z" fill="none" />
  141. <polyline points="3 17 9 11 13 15 21 7" />
  142. <polyline points="14 7 21 7 21 14" />
  143. </svg>
  144. </span>
  145. </div>
  146. </div>
  147. <div class="mt-2">
  148. <div class="tracking">
  149. <div class="tracking-block bg-success" data-bs-toggle="tooltip" data-bs-placement="top" title="Operational"></div>
  150. <div class="tracking-block bg-danger" data-bs-toggle="tooltip" data-bs-placement="top" title="Downtime"></div>
  151. <div class="tracking-block bg-success" data-bs-toggle="tooltip" data-bs-placement="top" title="Operational"></div>
  152. <div class="tracking-block bg-warning" data-bs-toggle="tooltip" data-bs-placement="top" title="Big load"></div>
  153. <div class="tracking-block" data-bs-toggle="tooltip" data-bs-placement="top" title="No data"></div>
  154. <div class="tracking-block" data-bs-toggle="tooltip" data-bs-placement="top" title="No data"></div>
  155. ...
  156. </div>
  157. </div>
  158. </div>
  159. </div>
  160. ```