Files
LACT/lact-gui/ui/graphs_window.blp
Ilya Zlobintsev 50fea14480 feat: implement historical charts window (#301)
* feat: Implement graph widget in OC tab

* fix: Moved legend to lower left corner

* fix: Fix graph jumping around before getting data for 60 secs

* fix: Fix vertical part of graph jumping around

* chore: Refactoring GraphData to be it's separate struct

* chore: Rename Graph to Plot

* feat: Implement throttling histogram in Plot

* fix: Fix throttling data not being filtered out

* fix: Draw lines in front of throttling histogram and use deep orange non-transparent color

* feat: Cubic spline interpolation for plot

* chrone: Lightly refactor cubic sampling

* feat: Supersample the plot area and reconfigure sizes accordingly

* feat: WIP graphs window

* feat: improvements

* feat: add clockspeed plot

* feat: avoid using JSON to send graph info

* perf: trim clockspeed graph data

* chore: remove unused feature

* perf: use NaiveDateTime for the plot

* feat: add power usage plot

* fix: reset power plot

* dev: add benchmark for drawing plots

* perf: use raw timestamps instead of NaiveDateTime in plot

* fix: avoid running gtk tests in ci

* chore: switch away from git source for plotters-cairo

---------

Co-authored-by: Alik Aslanyan <inline0@pm.me>
2024-04-22 19:21:00 +03:00

55 lines
1006 B
Plaintext

using Gtk 4.0;
template $GraphsWindow: Window {
default-height: 600;
default-width: 600;
title: "Historical data";
hide-on-close: true;
Grid {
margin-top: 10;
margin-bottom: 10;
margin-start: 10;
margin-end: 10;
row-spacing: 20;
column-spacing: 20;
$Plot temperature_plot {
title: "Temperature";
hexpand: true;
value-suffix: "°C";
y-label-area-size: 80;
layout {
column: 0;
row: 0;
}
}
$Plot clockspeed_plot {
title: "Clockspeed";
hexpand: true;
value-suffix: "MHz";
y-label-area-size: 140;
layout {
column: 0;
row: 1;
}
}
$Plot power_plot {
title: "Power usage";
hexpand: true;
value-suffix: "W";
y-label-area-size: 80;
layout {
column: 0;
row: 2;
}
}
}
}