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 #48

Closed
GoogleCodeExporter opened this issue Apr 14, 2016 · 6 comments
Closed

Additive Chart Support #48

GoogleCodeExporter opened this issue Apr 14, 2016 · 6 comments

Comments

@GoogleCodeExporter
Copy link

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 reported on code.google.com by dcol...@gmail.com on 13 Jul 2008 at 7:01

@GoogleCodeExporter
Copy link
Author

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.

Original comment by ryan.fun...@gmail.com on 21 Jul 2008 at 9:17

@GoogleCodeExporter
Copy link
Author

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.

Original comment by olau%iol...@gtempaccount.com on 10 Sep 2008 at 7:45

  • Changed state: WontFix
  • Added labels: Type-Enhancement
  • Removed labels: Type-Defect

@GoogleCodeExporter
Copy link
Author

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.

Original comment by olau%iol...@gtempaccount.com on 18 Sep 2008 at 9:43

  • Changed state: New

@GoogleCodeExporter
Copy link
Author

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.

Original comment by postw...@gmail.com on 26 Sep 2008 at 1:52

@GoogleCodeExporter
Copy link
Author

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.

Original comment by olau%iol...@gtempaccount.com on 1 Oct 2008 at 8:18

@GoogleCodeExporter
Copy link
Author

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.

Original comment by olau%iol...@gtempaccount.com on 15 Mar 2010 at 1:07

  • Changed state: Fixed

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