tableau / extension-hierarchy-navigator-sandboxed

Visualize your flat/dimensional or recursive data in a Tree/Hierarchy Extension an a Tableau Dashboard
MIT License
8 stars 7 forks source link

Hierarchy Navigator

This extension allows you to visualize your flat/dimensional or recursive data in a Tree/Hierarchy Extension an a Tableau Dashboard.

What does it do?

Animated Image

How to use an Extension

This extension is available as a sandboxed extension: sandboxed manifest file.

The landing page is hosted on Github.io Pages

Instructions for use

  1. Download the sample workbook with examples and directions (2018.3+ with Set Actions).
  2. Directions for setup are in the workbook on pages 10 and 11 of the story.

Customization

  1. General Tab
    • Show Search Box - show or disable the search box
    • Show Title - Show or hide the title inside the extension
    • Parameters should listen for dashboard changes - Check this box if you want other sheets to drive the selection of the hierarchy
    • Enable debug - show debug information in the extension and add console.log statements to the Developer Console (in debug mode)
  2. Colors/Fonts
    • Background Color* - Change the background color for the extension.
    • Font Color* - Change the color of the text
    • Highhlight Color - Change the color of the currently selected element \ Accepts any valid CSS color (#ffffff, rgb(x,y,z), or string literal like 'green')
    • Font Size - Accepts any valid CSS font size (12px, 2rem, etc)
    • Font Family - Valid fonts that are installed on your Tableau server
    • CSS for Items - Any valid React css (see Styling React Using CSS). This will be applied to each entry in the tree and may override other properties on this page. Property names are in camelCase, eg, min-width in a traditional file would be written as minWidth in React CSS.
  3. Icons
    • Both the open icon and closed icon can be any of:
      • Default - left facing and down angle brackets. (will respect the font color property)
      • Base64 Image - Convert an image with a Base64 image converter and past the resulting string in the box. Valid strings start with data:image/xyz;base64,.... Images should be 12px tall if you are using the 12px font size.
      • Ascii - any valid single/multiple ascii characters (will respect the font color property)

Known Bugs/Limitations

Dev build notes

For anyone that wants to build/modify/re-use this code here are some useful notes.