Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test array with same elements. Test fails #5

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

KarlHeitmann
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant