Redash: Sankey diagram occupy only the left of the chart area

Created on 31 Mar 2020  Â·  10Comments  Â·  Source: getredash/redash

When using a Sankey diagram, the diagram itself is surprisingly positioned on the left-side of the chart area, leaving the right half almost free.

Screenshot 2020-03-31 at 14 18 03

Screenshot 2020-03-31 at 14 17 48

This doesn't happen with other types of chart, which occupy the space in full.

Frontend Visualizations

Most helpful comment

The issue I've reported is for two levels of Sankey columns, and the screenshot you provided me has five levels.

Reopening until we can reproduce (or not) with 2 levels + on version 8.

All 10 comments

@JivanRoquet Thank you for reporting this. Since you didn't provide any additional info, I assume that you're using old version of Redash, because I cannot reproduce this on master:

image

I'm closing this issue because considering all facts we have - it's already fixed. Feel free to reopen if you have some additional info. Also, I'll kindly ask you to follow our issue template next time.

I didn't notice that a template was suggested. I am using Redash Version: 7.0.0+b17535 (15c815fb). Not sure whether it is the latest version or not.

The issue I've reported is for two levels of Sankey columns, and the screenshot you provided me has five levels. The diagram takes the whole space with five levels probably because it has some kind of "max-width" setting for each individual level.

I can't reopen the issue myself because I don't have the permissions to do it, but in no case I would consider this issue "fixed", at least not from the screenshot you used. Again, working for 5 doesn't mean working for 2, and in this case, I've checked that on my side it works well for 5, and not for 2.

The issue I've reported is for two levels of Sankey columns, and the screenshot you provided me has five levels.

Reopening until we can reproduce (or not) with 2 levels + on version 8.

Thanks — also I'm gonna look into how we can upgrade to v8

Confirmed it happens with 2 stages in master ->
image (https://redash-preview.netlify.com/queries/353#619)

Ok, now that we confirmed this still exists, there is the question: what is the expected behavior? Center it? Stretch it?

The problem with stretching is that it might make seeing the connection harder, no?

Just as another example, here's the 5 stage sankey as 2 stages: https://redash-preview.netlify.com/queries/354#621.

I think it should stretch as it does with more stages. I'll take a look a bit later

@JivanRoquet (cc @arikfr) Fixed - getredash/redash#4765

@JivanRoquet please note that the fix will be part of the V9 release.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

alison985 picture alison985  Â·  3Comments

arikfr picture arikfr  Â·  3Comments

koooge picture koooge  Â·  3Comments

tomaytotomato picture tomaytotomato  Â·  4Comments

atharvai picture atharvai  Â·  4Comments