updated some formatting on charts

This commit is contained in:
UpstreamData
2022-03-04 14:36:43 -07:00
parent 727ebd9c42
commit 2c93f1f395
3 changed files with 5 additions and 4 deletions

View File

@@ -154,7 +154,7 @@ async def miner_websocket(websocket: WebSocket, miner_ip):
"fans": fan_speeds, "fans": fan_speeds,
"datetime": datetime.datetime.now().isoformat()} "datetime": datetime.datetime.now().isoformat()}
await websocket.send_json(data) await websocket.send_json(data)
await asyncio.sleep(5) await asyncio.sleep(1)
except asyncio.exceptions.TimeoutError: except asyncio.exceptions.TimeoutError:
data = {"error": "The miner is not responding."} data = {"error": "The miner is not responding."}
await websocket.send_json(data) await websocket.send_json(data)

View File

@@ -77,7 +77,7 @@ var minerDataChart = new Chart(document.getElementById("line-chart"), {
options: { options: {
animation: { animation: {
easing: 'easeInSine', easing: 'easeInSine',
duration: 250 duration: 0
}, },
plugins: { plugins: {
chartAreaBorder: { chartAreaBorder: {

View File

@@ -134,7 +134,7 @@ var minerDataChart = new Chart(document.getElementById("line-chart"), {
options: { options: {
animation: { animation: {
easing: 'easeInSine', easing: 'easeInSine',
duration: 250 duration: 0
}, },
plugins: { plugins: {
chartAreaBorder: { chartAreaBorder: {
@@ -177,7 +177,8 @@ var minerDataChart = new Chart(document.getElementById("line-chart"), {
var options_fans = { var options_fans = {
animation: { animation: {
duration: 0, easing: 'easeInSine',
duration: 250,
}, },
aspectRatio: 1.5, aspectRatio: 1.5,
events: [], events: [],