From 3c0d32c1c34565737e026eb964048318ef74d0bf Mon Sep 17 00:00:00 2001 From: dotCooCoo Date: Sun, 15 Nov 2026 08:28:07 -0800 Subject: [PATCH] Graphs: CSV graph data keeps the series labels given, as Graph Data does Graph data applied as CSV kept a blank series label for each column after the last label given, because to_csv writes one for every series without a label. A graph data file named in an Import Data Sets % column therefore gave the graph ["A", ""] where Graph Data's Import Data and Apply give it ["A"]. The CSV branch of apply_data now drops trailing blank labels, as graph_data_from_grid does; blank labels between given ones stay. --- crates/engine/src/cmd/graph/data.rs | 5 +++++ crates/engine/src/tests/variables.rs | 28 ++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+) diff --git a/crates/engine/src/cmd/graph/data.rs b/crates/engine/src/cmd/graph/data.rs index b231ee2051..11cfd4ed26 100644 --- a/crates/engine/src/cmd/graph/data.rs +++ b/crates/engine/src/cmd/graph/data.rs @@ -245,6 +245,11 @@ pub(super) fn apply_data(g: &mut GraphSpec, p: &Value, cmd: &str) -> Result