Chart colors + rx chart bugfix

This commit is contained in:
Neale Pickett 2022-04-24 19:42:57 -06:00
parent ce1579a6b8
commit 6ea614eb55
3 changed files with 4 additions and 4 deletions

View File

@ -60,7 +60,7 @@ class HistoryChart {
let now = Date.now()
if (!when) when=now
this.data.push([now, value])
this.data.push([when, value])
this.data.sort()
let earliest = now - this.duration

View File

@ -95,8 +95,8 @@
<output id="note"></output>
<div id="charts">
<canvas class="chart" id="rxChart" data-color="teal"></canvas>
<canvas class="chart" id="txChart" data-color="maroon"></canvas>
<canvas class="chart" id="rxChart" data-color="orange"></canvas>
<canvas class="chart" id="txChart" data-color="teal"></canvas>
<canvas class="chart" id="ditChart" data-color="olive"></canvas>
<canvas class="chart" id="dahChart" data-color="purple"></canvas>
</div>

View File

@ -146,7 +146,7 @@ class VailClient {
let chart = tx?this.txChart:this.rxChart
if (chart) {
chart.SetAt(1, when)
chart.SetAt(0, when)
chart.SetAt(0, when+duration)
}
}