Combining Object Swapping with Category Objects
Our article on Object Swapping explains how you can create an object that you can use to change the values on an X (or Y) Axis. In this example we take it one step further and use objects to change the Legend and X and Y Axis combined with an object that filters the data in the chart.
Instructions
If you want to create this in your own dashboard, follow the instructions below and substitute the objects with the information you want to view:
In Dashboard Configuration>Data Connections, create the following objects in the Dashboard Repos connection:
For each object we’re using the COLS.DISPLAY_NAME object and in the WHERE clause, we’ve specified the columns that we want to be available for users to swap between. In the Legend example, we’ve used the values Payment Method, Fraud and Sales Year which all come from our Retail data connection.
In the Retail data connection we then created the following objects, this is an example of the Legend object:
We called this object ‘Swap Legend’ but you can call it whatever you want. The ‘Select’ statement for this object refers back to the object that we created in Dashboard Repos called ‘Legend’.
In Dashboard Configuration>Categories add the objects that you created in Dashboard Repos:
The ticks for ‘Can Select All’ and ‘Filter’ have been removed for all the objects that we want to use in Object Swapping. The only object that users can filter on is the ‘Store Name’
We then build a chart that contains the objects we created in our Retail data connection:
When users select an object in Category Objects, in the following example we’ve chosen an item from the Legend, they will see the columns that you entered in the WHERE clause in Dashboard Repos:
After clicking the ‘Apply’ button, the Legend will swap to show the new selection and the chart will be updated:
As a final step, to make the Axis and Legend labels more meaningful to users, we used Object Replacement in the label fields on the Attributes screen:
CUSTOMER NEWS - Our November 24 Release Is Now Available - Download It Now!