Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Emulating a 100% stacked area chart - series issue #1

Closed
paultweedy opened this Issue · 3 comments

2 participants

@paultweedy

Hi,

I'm using Chart::Clicker for a project and it's so far proved a pleasure to work with. However, I've hit a bit of a blocker and I can't figure out a way round.

I'm using Chart::Clicker::Renderer::StackedArea to render a chart with three series of percentages, in such a way that creates a 100% stacked view of the data (by setting the x-axis with a range of 0-100). This works really well, until I have a series that has data points of 0. At these points in the chart, the other two series (with, say, values of 25 and 75) are rendered with the wrong scale, and there is a large white gap at the top of the chart at that those points.

You can see an example here on the right-hand side of the chart (the blips on the left-hand side are all series having values of 0, which is fine) : http://www.70cities.net/test_stacked.png

Any ideas on how to fix or work around this?

A

@gphat
Owner

Could I trouble you for a script that demonstrates the issue? If you could throw one my way, I'd be happy to fix it for you!

@paultweedy

Actually, mea culpa - a closer look at the underlying data I'm trying to chart reveals that some of the percentage values are completely incorrect.

A quick test script with sane values revealed that Chart::Clicker is working as expected!

Apologies for raising a bogus issue.

@paultweedy paultweedy closed this
@gphat
Owner

Heh. No worries, thanks for the heads up either way!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.