3 Replies Latest reply on Jan 29, 2017 12:26 AM by Bora Beran

    Select components through floating transaprent image layer

    Dominic Meuli



      I am trying to recreate a viz on the cost components of craft beer seen on Huffington Post (http://www.huffingtonpost.com/2014/09/12/craft-beer-expensive-cost_n_5670015.html)


      Here the original:


      And my version here: it is a stacked bar chart with an image (with a transparent bottle) floating over it.

      Screen Shot 2017-01-28 at 11.43.16.png


      While I'm happy with the visual outcome, I loose all interactivity... Is there a way to be able to hover over the image, see the tooltip or be able to select one component? I've attached the packaged workbook if it helps.





        • 1. Re: Select components through floating transaprent image layer
          Jamieson Christian



          What a cool looking design!


          You've discovered that a PNG with transparency nevertheless grabs input across the range of the image, even the transparent pixels. This is unlikely to change (in my uninformed opinion), because it would be near-impossible to implement in a web browser context (for Tableau Server, Tableau Online and Tableau Public).


          I tried an exercise wherein I created a copy of your bar chart and then stripped out all of the colors, lines, and borders, and set the Worksheet shading to "None". My thought was to place this on top of the bottle image, so it would drive the interactive behaviors (the "tooltip chart") while the bottom-most sheet drove the actual bar colors and labels (the "bar chart"). This technique would rely on the top-most worksheet having a transparent background. However, that's not as easy as I had hoped.


          It turns out that setting the Worksheet shading to "none" doesn't actually mean "transparent"; it just defaults to white.


          I tried a trick that Shawn Wallwork demonstrated in this thread: Re: hide worksheet background. This trick uses a Map image to show something behind a chart. This would have allowed me to incorporate the bottle shape into the "tooltip chart", and maybe the transparency of the Map background would show the "bar chart" underneat. However, it turns out that the Map background image does not override the worksheet's default white color; the default white still shows through underneath, so when placed on the dashboard, the worksheet is still full opaque.


          I was unable to find a method to get a worksheet to be truly transparent, in order to get my trick to work. It turns out there are a couple of Ideas open on the topic of worksheet transparency, and you may want to upvote them.



          https://community.tableau.com/ideas/5466  (might end up getting rolled into 1692, but cast your vote anyway!)


          In the meantime, I was unable to find a way to achieve the beautiful bottle shape while still having all the interactive behavior of the underlying bar chart. So sorry!

          1 of 1 people found this helpful
          • 2. Re: Select components through floating transaprent image layer
            Jeff D

            Hi Dominic,


            Here's an alternative design.  It's not quite as nice as your original approach, but perhaps it will give you more ideas.  Interactivity is restricted to the chart on the right side, but the bars extend over the image.  See attached workbook.





            • 3. Re: Select components through floating transaprent image layer
              Bora Beran

              Slice the image into multiple pieces. Them more slices you have, the smaller the dead space.


              Screen Shot 2017-01-29 at 12.26.07 AM.png

              1 of 1 people found this helpful