mirror of https://github.com/nealey/vail.git
Chart colors + rx chart bugfix
This commit is contained in:
parent
ce1579a6b8
commit
6ea614eb55
|
@ -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
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue