Skip to content

Commit 2203ad0

Browse files
committed
Added back chartData .flat() to behave as upstream (although not sure it's required as the JSON data doesn't look like it needs flattening.
1 parent 650de50 commit 2203ad0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/cli/chart.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ exports.generate = (data, type = 'cases') => {
88
height: 7,
99
format: (x, i) => x.toFixed().padStart(maxLength)
1010
};
11-
chartData = Object.values(data.timeline[type]);
11+
chartData = Object.values(data.timeline[type]).flat();
1212
return chart.plot(chartData, config);
1313
}

0 commit comments

Comments
 (0)