haskell-chart
haskell-chart copied to clipboard
bar chart with a single cluster renders all bars on top of each other
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?
I could workaround this issue by adding another cluster with no data points i.e. [([], [])]
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.