ascii_chart icon indicating copy to clipboard operation
ascii_chart copied to clipboard

Test array with same elements. Test fails

Open KarlHeitmann opened this issue 2 years ago • 0 comments

Solve issue #4

In case the height argument is provided along with an array filled by the same number, check out the graph plotted: it has height == 1. It makes sense, because if you want to plot: [4, 4, 4, 4], it makes sense to have a chart with a straight line: it's height will be 1.

But sinse a height is provided as param, I'd expect the chart to be filled with a eg 4 blank lines above and 5 lines below. Or maybe 9 lines above and 0 lines below? I don't know. I'll let it as it is and you can make the call on how do you want it.

Maybe a follow up task could be: add a new param to fill padding top and bottom of the graph, and use that new function to add padding to a graph that has drawn an array with same values and a height as param.

KarlHeitmann avatar Jul 08 '23 02:07 KarlHeitmann