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

bar chart with a single cluster renders all bars on top of each other #184

Open
harendra-kumar opened this issue Apr 8, 2018 · 2 comments

Comments

@harendra-kumar
Copy link

When using two or more clusters in the chart the width and placement of the bars is correct. But when we have just a single cluster in the whole chart it renders very badly, the chart is unusable in that case.

See these examples:

Any idea what's wrong here? Is there a workaround for this problem?

@harendra-kumar
Copy link
Author

I could workaround this issue by adding another cluster with no data points i.e. [([], [])]

@timbod7
Copy link
Owner

timbod7 commented Apr 8, 2018

Yikes. Thanks for the bug report. It's probably not too hard to fix this end-case, though I might not get to it for a while. I'd be happy to receive a patch - the relevant code is in Chart/Plot/Bars.hs:renderPlotBars.

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

No branches or pull requests

2 participants