Forum Discussion

asdf1608's avatar
asdf1608
Helper V
3 years ago

SVG Stacked bar in Matrix Visualization

I need to combine a matrix visualization with the measure values as Stacked bar in Power Bi.

I tried to use two different charts but the format is not same. So trying to use SCG Stacked bar chart for three columns

1)a = MIN(Column1)

2)b = MIN(Column2)

3)c = MIN(Column3)

How do I create a SVG to display the bars like this

Help in this is needed

20 Replies

  • You hand craft the SVG code for that type of visual (including the rendering of the Y axis and the calculation of the Y offset for the bars) and then you present that SVG to the image in the matrix cell.  

     

    Start with sample data and create the SVG for the desired output. Then make the parameters dynamic.

    • asdf1608's avatar
      asdf1608
      Helper V

      lbendlin Yes I tried to do that but I am not getting in stacked bar and I couldn't find any samples for stacked bar. Can you refer any stacked bar SVG .

       

      Please help this is an emergency

      • lbendlin's avatar
        lbendlin
        Super User

        Please provide sanitized sample data that fully covers your issue.
        Please show the expected outcome based on the sample data you provided.

    • lbendlin's avatar
      lbendlin
      Super User

      no, still learning how to use VCONCAT properly in Deneb, and how to translate that the SVG code.

      • asdf1608's avatar
        asdf1608
        Helper V

        lbendlin Thank you for your effort. I tried to get in other ways the stacked bar chart in matrix visualization. Still nothings. So the only possibility is SVG in which I need help