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

Additive Chart Support #127

Closed
dnschnur opened this issue Sep 28, 2012 · 6 comments
Closed

Additive Chart Support #127

dnschnur opened this issue Sep 28, 2012 · 6 comments

Comments

@dnschnur
Copy link
Member

Original author: dcol...@gmail.com (July 13, 2008 19:01:44)

It would be nice to add additive charts. An additive chart will sum the
values of more than one item. The chart could be used for looking at the
production of a set of companies during a set of years. Viewers could then
see each companies production, but also the total production.

Original issue: http://code.google.com/p/flot/issues/detail?id=48

@dnschnur
Copy link
Member Author

From ryan.fun...@gmail.com on July 21, 2008 21:17:49
I think the appropriate way to do this is to add a dataset for the total production
in your own code. However you're already generating the data for each company, as you
go just keep track of whatever you're interested in.

@dnschnur
Copy link
Member Author

From olau%iol...@gtempaccount.com on September 10, 2008 19:45:51
I can empathize with your point, but I think I tend to agree with Ryan.

In any case, for anything to happen here, somebody needs to think up a reasonable API
that fits well in with the rest of Flot. That's the minimum requirement. :)

Offhand, to me, that sounds harder than simply summing up the stuff server-side. So
until this happens, I'll keep the bug closed as won'tfix.

@dnschnur
Copy link
Member Author

From olau%iol...@gtempaccount.com on September 18, 2008 09:43:39
OK, I'm going to reopen this. It's very similar to bug #31 which is about stacked
bar charts specifically. There's two things in this: support for drawing areas where
the lower part is not just the x axis, so to speak. And a preprocessor for
accumulating the data. Let's make this bug about the latter thing.

Again what needs to happen here first is that someone thinks up a reasonable API.

@dnschnur
Copy link
Member Author

From postw...@gmail.com on September 26, 2008 13:52:49
I'd like to see:

yaxis : { mode: "stacked" }

Or something equally simplistic. That would cause the data sets tied with the yaxis
to be drawn, in order, each stacked on the previous. We use this now (in another
charting tool) to represent composition. Think: bandwidth graph, but broken down by
protocol. Or database transaction rates split into insert, update and delete.

@dnschnur
Copy link
Member Author

From olau%iol...@gtempaccount.com on October 01, 2008 08:18:33
Another option which is a bit more general would be specifying it in the series as
something like { data: [...], cumulativeGroup: 1 }. Flot would then accumulate the
series in the group, with the first series being at the bottom.

I think that all it takes to implement this is a bit of logic in processData. I think
we need to copy accumulated data series, though, otherwise it's not going to work
when people replot the same graph.

@dnschnur
Copy link
Member Author

From olau%iol...@gtempaccount.com on March 15, 2010 13:07:24
If I'm not mistaken, this was actually fixed some time ago with the stacked plugin,
although it might not be complete yet I don't think it makes sense to keep this open
anymore.

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

No branches or pull requests

1 participant