Show Sidebar Hide Sidebar

Scatter Ternary Plots in Chart Studio

A type of plot that depicts depicts the ratio of 3 variables on a triangular grid.

Step 1

Add Your Data to Chart Studio

Head to Chart Studio’s new online workspace and add your data. You have the option of typing directly in the grid, uploading your file, or entering a URL of an online dataset. Chart Studio accepts .xls, .xlsx, or .csv files. For more information on how to enter your data, see this tutorial.

You can also use the data featured in this tutorial by clicking on 'Open This Data in Chart Studio' on the left-hand side. It'll open in your workspace.

Open data

Each data point on a ternary chart is plotted according to its relative composition with respects to the 3 main axes. For example, the data point (1, 2, 1) represents a data point that is made up of 25% of axis 1, 50% of axis 2, 25% of axis 3, this sums up to 100% of this point's composition with relation to axes A, B, and C.

To plot this data point, you will need to populate 3 columns on the grid, each column will then be mapped to one of the 3 axes. To add an additional data point to the graph, you will need to add an additional row to these 3 columns. In the example below, you can see how we would enter data to plot 4 data points onto our ternary plot.

Data Format

Step 2

Create a Chart

After adding your own data, go to the GRAPH section on the left-hand side menu of the workspace and select 'Ternary plot' from the 'Chart Type' dropdown menu.

Choose chart main

Now you can map your data columns to the axes that they will represent on the ternary graph. Once this mapping is complete, the data points you've entered into the grid will appear on the ternary plot.

Plot Data

To add another trace (layer), create 3 more columns and populate them with your data for the next trace. You can also reuse the same columns, if relevant, on multiple traces. Once your data for the second trace is added, you will have to map your columns to axes for the second trace, just like we did for the first trace. To do so, click on the '+Trace' button in the upper right corner of the GRAPH panel. Assign the columns you've created for the second trace to their respective A, B, C axes. You should now see two traces on your scatter ternary plot.

Tip: if you have multiple traces to add, the 'Collapse All' button may be useful to easily get back to the specific trace that you want to work on.

Second trace

Step 3

Style a Chart

To style your ternary plot, click on STYLE on the left-hand side menu of the workspace and play around with the styling of your plot.

For example, to change the symbol depicting your traces or any other styling related to the data that you plotted, go to ‘Traces’ under the STYLE tab, and change the symbol associated to the points that you graphed. The 'Display' needs to be set to 'Points' in order to do so. Also, please note that certain colours and typefaces are available only with a PRO subscription. Click here to upgrade!

Styling traces

To change the Title, Axes and Trace names, you can do so directly on the graph by double-clicking on the corresponding area. Further styling is also possible under the 'Layout' and 'Axes' sections of the STYLE menu. Note that to style trace names, the 'Legend' needs to be set to visible, if it is not the case, go to the 'Legend' section under the STYLE menu and select the option 'Show'.

Type directly title

Step 4

Save and Share

When your plot is done, click SAVE on the left-hand side menu, give your plot and grid a name, and identify them as 'Public' or 'Private'.

Save main

For more information on how to save, export, and share, visit this page!