refactored charts

This commit is contained in:
2021-11-02 22:45:01 -04:00
parent d660f1a0be
commit 2a0c030d16
2 changed files with 11 additions and 33 deletions

View File

@@ -1,17 +1,3 @@
<h1>Data Transfer Test</h1>
<section>
<h1>Everage: </h1>
<b>Download:</b> <%= @down_everage %> Mbps
<b>Upload:</b> <%= @up_everage %> Mbps
</section>
<section>
<h1>Maximum: </h1>
<b>Download:</b> <%= @max_download %> Mbps
<b>Upload:</b> <%= @max_upload %> Mbps
</section>
<section>
<h1>Minimum: </h1>
<b>Download:</b> <%= @min_download %> Mbps
<b>Upload:</b> <%= @min_upload %> Mbps
</section>
<%= bar_chart @data, xtitle: "Datetime", ytitle: "Rate", id: "users-chart", height: "700px" %>
<%= bar_chart @transfer_rate, xtitle: "Rate", ytitle: "Datetime", id: "rate_transfer-chart", height: "700px" %>
<%= column_chart @download_rate, xtitle: "Datetime", ytitle: "Rate", id: "download_rate-chart", height: "700px" %>