Jump to content
We've recently updated our Privacy Statement, available here. ×
  • How to reuse a Spotfire JSViz example and apply it to your data


    These are the steps needed to reuse an existing Spotfire JSViz example and apply them to your data.  This assumes that you have already installed the JSViz framework.  https://community.spotfire.com/articles/spotfire/javascript-visualization-framework-jsviz-and-spotfire/

    1. Open a Spotfire session with your data.
    2. Open the JSViz example in a different Spotfire session and display it side-by-side.
    3. In your data session, click on 'JS' icon picture1_2.png.2f74e94688660eff326ced169c258f4b.png from to the top menu or Insert (menu) >Visualization >JavaScript Visualization'.  (displays a clean JS Viz) 
      1. Click the 'Properties' icon properties_0.png.f1bcef7bb22ae9a7abb7951378c5fb8f.png (from top right corner if visual to open JSVizPropertiesDialog)
      2. Click 'Data' (left panel), and then click the '+' icon and configure
        1. General Data Settings:
          1. Data table (reference)
          2. Filtering Scheme (reference)
          3. Marking (reference)
          4. Limit data by: (option)
        2. Column Definitions:
          1. Select Group-by Columns (see JS Viz example > JSVizPropertyDialog > Data > 'Edit' edit_0.png.5342d90fb5d43a1535c2ad694ace0679.png
          2. Selected Column Expressions (see JS Viz example) to determine how to compute items in visual
            1. The number of elements will depend on the JS Viz example (the Funel Plot example uses 2 items: the first is the label; the second is the calculation).
            2. 'Save Expression' > 'Close'  
    4. Click 'Library' (left panel)
      1. From JS Viz Example, open JSVizPropertyDialog > Library > 'Export to Clipboard'
      2. Return to your data session and click on JSVizPropertyDialog > Library > 'Import From Clipboard'
    5. Click  'Contents' (left panel)
      • Select the items in 'Available Content'  and move them into the 'Used Content' in the same sequence as in the JS Viz example.
    6. Click Close.


    User Feedback

    Recommended Comments

    There are no comments to display.

  • Create New...