From 522e11c8086b7d8ab76b9be07c1861f35ed2327f Mon Sep 17 00:00:00 2001 From: Paul Oliver Date: Mon, 4 May 2026 23:33:08 +0200 Subject: Adds prototype for the data client UI --- data/plots.c | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 data/plots.c (limited to 'data/plots.c') diff --git a/data/plots.c b/data/plots.c new file mode 100644 index 0000000..211346f --- /dev/null +++ b/data/plots.c @@ -0,0 +1,35 @@ +enum PlotType { + PLOT_LINES, +}; + +struct PlotDef { + const char *name; + const char *table; + enum PlotType plot_type; + const char **cols; +}; + +struct PlotDef g_general_plots_def[] = { + { .name = "cycl", .table = "general", .plot_type = PLOT_LINES, .cols = (const char *[]){ +#define FOR_CORE(i) "cycl_" #i, + FOR_CORES +#undef FOR_CORE + }}, + { .name = "mall", .table = "general", .plot_type = PLOT_LINES, .cols = (const char *[]){ +#define FOR_CORE(i) "mall_" #i, + FOR_CORES +#undef FOR_CORE + }}, + { .name = "pnum", .table = "general", .plot_type = PLOT_LINES, .cols = (const char *[]){ +#define FOR_CORE(i) "pnum_" #i, + FOR_CORES +#undef FOR_CORE + }}, + { .name = "ppop", .table = "general", .plot_type = PLOT_LINES, .cols = (const char *[]){ +#define FOR_CORE(i) "pfst_" #i, "plst_" #i, + FOR_CORES +#undef FOR_CORE + }}, +}; + +size_t g_general_plots_count = sizeof(g_general_plots_def) / sizeof(struct PlotDef); -- cgit v1.3