Membuat diagram Sankey dengan Editor Konfigurasi Diagram
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Diagram Sankey menekankan alur dari satu status ke status lainnya. Di Looker, setiap nilai dimensi direpresentasikan sebagai status, dan ukuran alur ditentukan oleh nilai pengukuran numerik.
Dengan Chart Config Editor, Anda dapat membuat diagram Sankey dengan memulai dari diagram kolom di Looker. Untuk hasil terbaik, gunakan minimal dua dimensi dan tepat satu ukuran untuk membuat diagram Sankey.
Misalnya, Anda dapat membuat diagram Sankey yang menampilkan nilai pengukuran Jumlah Item Pesanan berdasarkan beberapa nilai dimensi Koleksi Musiman, yang mengalir ke nilai dimensi Kategori. Setiap nilai dimensi diwakili oleh persegi panjang dengan kode warna. Lebar setiap garis yang bertemu dengan setiap persegi panjang sesuai dengan nilai ukuran Jumlah Item Pesanan untuk dimensi tersebut.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 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/chart-config-editor), you can create Sankey charts by starting from a [column chart](/looker/docs/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/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/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."]]