Skip to content
Prev Previous commit
Next Next commit
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.
  • Loading branch information
crudson committed Apr 1, 2020
commit 2203ad02f0dfd1d7c2713be8e63e01f3d5ab5fcf
2 changes: 1 addition & 1 deletion lib/cli/chart.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ exports.generate = (data, type = 'cases') => {
height: 7,
format: (x, i) => x.toFixed().padStart(maxLength)
};
chartData = Object.values(data.timeline[type]);
chartData = Object.values(data.timeline[type]).flat();
return chart.plot(chartData, config);
}