Skip to content

Commit 0209143

Browse files
committed
Fix single column graph display
When receiving only a single column of data, no graph would ever show up. This was due to the graph display data structure only being initialized when the number of datasets changes. However, the dataset attribute is populated with one entry by default, so when receiving a single column of data, the graph initialization never happens. Fix this by initializing the dataset structure to be empty by default. This bug was introduced in PR #119. Fixes: #119
1 parent 6727350 commit 0209143

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/data.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ impl Default for DataContainer {
5757
DataContainer {
5858
time: vec![],
5959
absolute_time: vec![],
60-
dataset: vec![vec![]],
60+
dataset: vec![],
6161
raw_traffic: vec![],
6262
loaded_from_file: false,
6363
}

0 commit comments

Comments
 (0)