This article describes how to go from a set of variables or data table to a state where the data is visualized as a Sankey diagram:
You will need any of the following:
- At least two variables of any type.
- An input table using at least two variables.
- Values typed or copied into a table manually with at least two columns.
- From the toolbar, go to Visualization > Exotic > Sankey.
- In the object inspector, go to Inputs > DATA SOURCE, select the type of data source you wish to use to create the Sankey diagram.
- If you wish to use an existing table go to Input table and select the desired table from the drop-down menu.
- If you wish to use variables go to Variables and select the desired variables from the drop-down menu. Alternatively, you can drag and drop the variables from the Data Sets tree into the menu itself. In this example, we have selected Gender and Preferred cola as variables.
- To input the data manually, select Paste or type table. A new dialog box window will open where you can paste or type in your data. Note that the table must have at least two columns.
- Select Calculate.
- OPTIONAL: Specify the maximum number of categories by entering a number in Maximum number of categories.
OPTIONAL: You can customize the look of the diagram by going to the object inspector > Chart and adjusting the settings for APPEARANCE, LABELS, and HOVERTEXT.