Skip to Main Content
Spotfire Ideas Portal

Combine 'Color By' and 'Shape By'

They have 'Color By' and 'Shape By' set to the same column, would like to combine them into one legend entry that combines the color and shape into a single marker.

For example:

Color by:
Pet

(red) Cat
(blue) Dog
(green)Fish

Shape By:
Pet

(circle) Cat
(square) Dog
(star) Fish

Could become:

Style by:
Pet

(red circle) Cat
(blue square) Dog
(green star) Fish

{noformat}

  • Attach files
      Drop here to upload
    • Guest
      Reply
      |
      Mar 4, 2022

      Thanks Thomas!

    • Guest
      Reply
      |
      Mar 4, 2022

      Here is a workaround.

      1. Create a new Scatterplot to serve as a Legend for your main scatterplot.

      2. Set Color and Shape properties the same as in your main visualization. (In the example above, they are the same column, but need not be.)

      3. Set the X-axis custom expression to the value 1.

      4. Set the Y-axis to the Color and Shape column(s).

      5. Clean up Tooltips

      6. Hide the legend, X and Y selectors, and zoom sliders.

      7. Stretch and shape to fit.

      8. Consider locking the visualization to the corner of the page.


    • Guest
      Reply
      |
      Mar 23, 2021

      This would be a massive improvement