jondot / graphene

Graphene is a realtime dashboard & graphing toolkit based on D3 and Backbone.
http://jondot.github.com/graphene
2.87k stars 232 forks source link

Stacking graphs #66

Closed iannaccone15 closed 11 years ago

iannaccone15 commented 11 years ago

Is there a way to stack the graphs? I know d3 allows this but is there a quick way to do it in graphene? Trying not to write a new function to do it.

iannaccone15 commented 11 years ago

By stack graphs i mean stack individual metrics on the same graph

austingulati commented 11 years ago

What type of graph are you trying to draw? Are you trying to get a stacked bar graph?

iannaccone15 commented 11 years ago

stacked area graphs or "timeseries" as graphene calls it

austingulati commented 11 years ago

As far as I know, Graphene doesn't support this.

One option is to use Graphite to add the metrics. For example, if you have metrics A, B, and C, and you want A to be the bottom of the graph with B stacked in the middle and C stacked on top, you could use: A' = A, B' = A + B, C' = A + B + C. This would render like a stacked timeseries.

iannaccone15 commented 11 years ago

Ok, thanks for the help!