Forum Discussion

hsavy's avatar
hsavy
Frequent Visitor
3 years ago
Solved

Deneb - Independent Y-Axis Field on a facetted plot

Hello everyone, 

I need you help to make y-axis coherent to the facetted plot I am doing (Deneb). 

I facet a graph upon differents Products, with independant and differents Versions (y-axis) for each product. The issue is that Products are displayed according to versions of all product shown, and not only the one intended. Here he two screen of my deneb : 

           2   


When only one Product is filtered, version are shown correctly. But when I filter multiples products, each product is displayed according to the sum of versions of all products, which make it unreadable. 
Could you help me figure out how to make it work as I need ? 

Thanks everyone that's is going to help. 

giammariam  ppm1 lbendlin, I ping you as you helped me at the beginning of the project, maybe you could also help here 😉 

  • Thanks hsavy, is this more of what you're after? I simply updated the resolve to set the scale as independent, as opposed to the axis. Let me know if you're trying to do something else.

    "resolve": {"scale": {"y": "independent"}}



    Vega Editor Gist 

13 Replies

  • Hey hsavy. I would look into resolve to get the scales to show as desired. If you could provide a santized .pbix file with some mock data and your deneb visual, it'd really help me to dive deeper into this. If that can't happen, could you provide your vega/vega-lite spec? Happy to help further. Also, thanks for the tag.

    • hsavy's avatar
      hsavy
      Frequent Visitor

      .txt / .pbix files are not supported, how could i gave you access to my vega-lite spec ? 
      I will also give you some anonimized data to work with.