Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
I've made this Gantt Diagram in Deneb.
This issue is, when I scroll up in the Diagram the X-Axis dissapears and I can,'t see the years. Can this X axis be froozen, so it visible when scrolling up?
This is my code (yes, it is my first time using Deneb)
Solved! Go to Solution.
Hey @Torbenand. Unfortunately freezing elements or layout components does not seem possible in the Vega languages alone. This is something that I have wanted for quite a while. However, I have seen workarounds that use interval selections to simulate this behavior. You can even make the brushing selector somewhat look like a scroll bar. The LOE for this seems pretty significant and if possible with the Gantt, it would need to be in Vega, not Vega-Lite. This is because we have access to configure brushing behavior in Vega only.
I've been wanting to prove this out myself for a while, so if you are ok with switching to Vega, and the larger learning curve that comes with it, I can give this a shot.
If the answer is yes, do you mind providing a sanitized dataset (here's how)?
Please see this video for one way to implement scrolling with Vega Lite.
https://www.youtube.com/watch?v=lmC5k12jd_Y
Pat
Hi Madison
thanks for your answer and thank you for your commitment to help. 😀 Too bad this function isn't available in Vega Lite. I'll need to get back to my customer to seem if this functionality is so important, that they would want us to spend time on this or they can live without this.
Makes sense. And there is the alternate workaround that @ppm1 shared below that may be worth sharing with your customer as well. While it deviates from the typical user experience one would expect with regard to scrolling, your customer may find that it will suffice just fine, especially when you explain that it is a significant lower level of effort to implement when compared to what I'm proposing.
Hey @Torbenand. Unfortunately freezing elements or layout components does not seem possible in the Vega languages alone. This is something that I have wanted for quite a while. However, I have seen workarounds that use interval selections to simulate this behavior. You can even make the brushing selector somewhat look like a scroll bar. The LOE for this seems pretty significant and if possible with the Gantt, it would need to be in Vega, not Vega-Lite. This is because we have access to configure brushing behavior in Vega only.
I've been wanting to prove this out myself for a while, so if you are ok with switching to Vega, and the larger learning curve that comes with it, I can give this a shot.
If the answer is yes, do you mind providing a sanitized dataset (here's how)?