- Have you ever wanted to include multiple labels, but run into limitations where Spotfire only allows you to add one?
This problem can be solved with a simple hack using a custom expression. As you can see in the screenshot below, there isn’t an option to add more than one column of data to a label. A simple fix for this is to right click and use Custom Expression.
Use the concatenate function to string together columns of data, and separate them with additional arguments. In the example shown below, I am concatenating Operator, FieldName and Lease and separating them with dashes and spaces.
This hack works for scatter plots, 3D scatter plots and map charts. It will work anytime you see the label by selector (shown in red below), which is where you right click and select ‘Custom Expression’.
You won’t see this in line charts, bar charts, and many other visualizations.
Guest Spotfire blogger residing in Whitefish, MT. Working for SM Energy’s Advanced Analytics and Emerging Technology team!