Creating a Sankey chart with the Chart Config Editor
Stay organized with collections
Save and categorize content based on your preferences.
A Sankey chart emphasizes flow from one state to another. In Looker, each dimension value is represented as a state, and the size of the flow is determined by a numeric measure value.
Using the Chart Config Editor, you can create Sankey charts by starting from a column chart in Looker. For best results, use at least two dimensions and exactly one measure to create a Sankey chart.
For example, you can create a Sankey chart that shows the Order Item Count measure values over several Seasonal Collection dimension values, which flow into Category dimension values. Each dimension value is represented by a color-coded rectangle. The width of each line where it meets each rectangle corresponds to the value of the Order Item Count measure for that dimension.
To create a Sankey chart, start from the following JSON snippet:
{chart:{type:'sankey'}}
Creating a Sankey chart
To create a Sankey chart, follow these steps:
View a column chart in an Explore, or edit a column chart in a Look or dashboard.
For this example, we recommend starting from a column chart with two dimensions and one measure. Your starting chart might look something like this example:
Open the Edit menu in the visualization.
In the Plot tab, click the Edit Chart Config button. Looker displays the Edit Chart Config dialog.
Select the Chart Config (Override) section, and enter the HighCharts JSON from the Writing the JSON snippet section of this page.
To let Looker properly format your JSON, click <> (Format code).
To test your changes, click Preview.
To apply your changes, click Apply. The visualization will be displayed using the custom JSON values.
Once you've customized your visualization, you can save it.
Limitations and requirements
Sankey charts require at least two dimensions and exactly one measure.
Sankey charts can display a maximum of 50 rows of data.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-25 UTC."],[],[],null,["# Creating a Sankey chart with the Chart Config Editor\n\n| **Note:** Starting in Looker 24.14, the Chart Config Editor supports the creation of Sankey charts.\n\nA Sankey chart emphasizes flow from one state to another. In Looker, each dimension value is represented as a state, and the size of the flow is determined by a numeric measure value.\n\nUsing the [Chart Config Editor](/looker/docs/2512/chart-config-editor), you can create Sankey charts by starting from a [column chart](/looker/docs/2512/column-options) in Looker. For best results, use at least two dimensions and exactly one measure to create a Sankey chart.\n\nFor example, you can create a Sankey chart that shows the **Order Item Count** measure values over several **Seasonal Collection** dimension values, which flow into **Category** dimension values. Each dimension value is represented by a color-coded rectangle. The width of each line where it meets each rectangle corresponds to the value of the **Order Item Count** measure for that dimension.\n\nPrerequisites\n-------------\n\nTo access the Chart Config Editor, you must have the [`can_override_vis_config` permission](/looker/docs/2512/admin-panel-users-roles#can_override_vis_config).\n\n### Writing the JSON snippet\n\nTo create a Sankey chart, start from the following JSON snippet: \n\n {\n chart: {\n type: 'sankey'\n }\n }\n\nCreating a Sankey chart\n-----------------------\n\nTo create a Sankey chart, follow these steps:\n\n1. View a [column chart](/looker/docs/2512/column-options) in an Explore, or edit a column chart in a Look or dashboard.\n\n For this example, we recommend starting from a column chart with two dimensions and one measure. Your starting chart might look something like this example:\n\n2. Open the **Edit** menu in the visualization.\n\n3. In the **Plot** tab, click the **Edit Chart Config** button. Looker displays the **Edit Chart Config** dialog.\n\n4. Select the **Chart Config (Override)** section, and enter the HighCharts JSON from the [Writing the JSON snippet](#json) section of this page.\n\n5. To let Looker properly format your JSON, click **\\\u003c\\\u003e (Format code)**.\n\n6. To test your changes, click **Preview**.\n\n7. To apply your changes, click **Apply**. The visualization will be displayed using the custom JSON values.\n\nOnce you've customized your visualization, you can save it.\n\nLimitations and requirements\n----------------------------\n\n- Sankey charts require at least two dimensions and exactly one measure.\n- Sankey charts can display a maximum of 50 rows of data."]]