1

I am using Deneb visual in Power BI to display project timelines in a gantt-chart. The Vega code within Deneb includes event handlers for panning and zooming on the timeline. The Deneb visual is integrated into a Power BI page with several slicers controlling for the data sent to the Deneb visual.

Every time I change the Power BI slicers (e.g. show/hide baseline values) and hence modify the number or rows sent to the Deneb visual the panning and zooming previously applied to the Deneb visualization are resetted.

Could you give me an indication, if the Vega code can be modified, in order to prevent changes of the input data to reset the panning and zooming applied? And if so, could you share a high level outline or some rough ideas how to do so?

This is the event handler that i am using (modified copy from Davide Bacci's Gantt chart)

    {
      "name": "anchor",
      "value": 0,
      "on": [
        {
          "events": "wheel",
          "update": "+invert('x_scale', x()-columnsWidth)"
        }
      ]
    },

However, I am not sure whether resetting the signal due to change in input data is a problem of the event handler, or if the entire Deneb visual is rendered anew, when input data changes?

3
  • 2
    See here: github.com/deneb-viz/deneb/issues/410 Commented Sep 3, 2024 at 16:04
  • Thank you for the link, still trying to get my head around the description of DMP. Is my current understanding correct, that currently the phenomenon of resetting the pan&zoom inside Deneb by changing Power BI slicers cannot be overcome, but only by implementing the slicer functionality via controls "inside" Deneb? And that Daniel is working on addressing this in one of the future Deneb releases? Commented Sep 9, 2024 at 15:27
  • 1
    That's right, yes Commented Sep 9, 2024 at 16:03

1 Answer 1

0

Comment posted by davidebacci CommentedSep 3 at 16:04

See here: https://github.com/deneb-viz/deneb/issues/410

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.