Skip to content
This repository has been archived by the owner on Jul 29, 2019. It is now read-only.

Stacking of line graphs similar to how the bar charts can be stacked #516

Open
chc88 opened this issue Dec 17, 2014 · 4 comments
Open

Stacking of line graphs similar to how the bar charts can be stacked #516

chc88 opened this issue Dec 17, 2014 · 4 comments

Comments

@chc88
Copy link

chc88 commented Dec 17, 2014

Is there any possibility to stack different line graphs?

I have timelines and resources which are being used/not (used=1, not=0).
In the graphs, I already have lines for each resource, if it is being used or not.

I want to have a new line, to see when how many resources are used in total. So the accumulated version of each line I current have.

Ofcourse; it is possible to add them serversided and push these as a new or maybe the first group, but stacking is in my opion a better solution as the distinction between the multiple lines I already have will be better.

Let me know if/where I missed something in the docs or where to start with a possible implementation for vis.

For an example, using Line-graphs and shading I'm trying to get something like: http://docs.sitefinity.com/types-of-charts#multidimensional-stacked-area-chart

@AlexDM0
Copy link
Contributor

AlexDM0 commented Dec 17, 2014

Hi,

Currently this is not possible. I agree it would be better as a feature of vis but for now you'll have to do it serverside.

I'll keep this open as a todo because we plan to do this in the future.

Cheers!

@AlexDM0
Copy link
Contributor

AlexDM0 commented Jan 9, 2015

Hi,

Over the last year a lot of feature requests have been made. We have just introduced our new website which has a list of the requested features. We have placed this request on that list.

The list can be found here:
http://visjs.org/featureRequests.html

An explaination of the new system can be found here:
http://visjs.org/blog.html#New\ website\ for\ vis.js!

I would like to stress that this does not mean we abandon this request. Discussion here will continue if needed on this feature but we will close it to keep our Github issue page more of a bug-todo list.

Future feature requests will still be made here and then added to the website by us.

Regards,

Alex

@AlexDM0 AlexDM0 closed this as completed Jan 9, 2015
@mojoaxel mojoaxel changed the title Stacking of line-graphs, possible? Stacking of line graphs similar to how the bar charts can be stacked Oct 24, 2016
@mojoaxel mojoaxel removed the Question label Oct 24, 2016
@mojoaxel
Copy link
Member

Reopening as Feature-Request issue (see #2114).
Everybody: Please feel free to implement this!

@mojoaxel mojoaxel reopened this Oct 24, 2016
@bradmontgomery
Copy link

Hi, I think this issue is the correctly place to report some strange behavior I'm seeing, but if not please forgive me.

It seems that enabling stack: true on a Graph2D plot sort of works, but points are stacked individually (e.g. only points that share an x value are compared), which tends to warp the shape of the stacked plot. Additionally, if you have any negative values, the lines will intersect rather than stack.

I've got a very simple example that illustrates the issue with negative values, here: http://jsbin.com/jicadop/edit?html,output

Are stacked plots for lines still officially unsupported or am I seeing a bug?

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

No branches or pull requests

4 participants