Membuat diagram pengukur solid dengan Editor Konfigurasi Diagram
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Diagram meteran solid berguna untuk menampilkan angka dalam rentang yang diketahui. Pembaca dapat dengan cepat menentukan apakah nilai saat ini relatif tinggi atau rendah berdasarkan nilai yang diharapkan.
Dengan Chart Config Editor, Anda dapat membuat diagram pengukur solid dengan memulai dari diagram kolom di Looker. Diagram indikator solid memerlukan satu dimensi dan satu ukuran.
Misalnya, diagram pengukur solid berikut menunjukkan nilai saat ini dari ukuran Kepuasan Pelanggan (CSAT), yang diwakili oleh status progres biru melingkar. Karena nilai skor CSAT yang mungkin berkisar dari 0 hingga 100, nilai tersebut ditampilkan di kedua ujung pengukur.
Ubah nilai berikut agar sesuai dengan kasus penggunaan Anda:
Atribut yAxis.min menentukan nilai minimum untuk diagram pengukur solid.
Atribut yAxis.max menentukan nilai maksimum untuk diagram pengukur solid.
Atribut yAxis.tickAmount menentukan jumlah label yang harus ditampilkan di sekitar diagram pengukur solid. Label akan didistribusikan secara merata berdasarkan atribut yAxis.min dan yAxis.max.
Membuat diagram pengukur solid
Untuk membuat diagram pengukur solid, ikuti langkah-langkah berikut:
Lihat diagram kolom di Jelajahi, atau edit diagram kolom di Tampilan atau dasbor.
Untuk contoh ini, sebaiknya mulai dari diagram kolom dengan satu dimensi dan satu ukuran, dengan batas satu baris. Diagram awal Anda mungkin terlihat seperti contoh ini:
Buka menu Edit dalam visualisasi.
Di tab Plot, klik tombol Edit Chart Config. Looker akan menampilkan dialog Edit Chart Config.
Pilih bagian Chart Config (Override), lalu masukkan JSON HighCharts dari bagian Menulis cuplikan JSON di halaman ini.
Agar Looker dapat memformat JSON Anda dengan benar, klik <> (Format code).
Untuk menguji perubahan, klik Pratinjau.
Untuk menerapkan perubahan, klik Terapkan. Visualisasi akan ditampilkan menggunakan nilai JSON kustom.
Setelah menyesuaikan visualisasi, Anda dapat menyimpannya.
[[["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-07-30 UTC."],[],[],null,["# Creating a solid gauge chart with the Chart Config Editor\n\n| **Note:** Starting in Looker 24.8, the Chart Config Editor supports the creation of solid gauge charts.\n\nSolid gauge charts are useful for displaying numbers in a known range. Readers can quickly determine whether the current value is relatively high or low based on expected values.\n\nUsing the [Chart Config Editor](/looker/docs/chart-config-editor), you can create solid gauge charts by starting from a column chart in Looker. Solid gauge charts require one dimension and one measure.\n\nFor example, the following solid gauge chart shows the current value of the **Customer Satisfaction (CSAT)** measure, which is represented by a circular blue progress bar. Since the possible values of CSAT scores can be from 0 to 100, those values are represented on either end of the gauge.\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 solid gauge chart, start from the following JSON snippet: \n\n {\n chart: {\n type: 'solidgauge'\n },\n yAxis: [{\n min: 0,\n max: 100,\n tickAmount: 10\n }],\n }\n\nChange the following values to fit your use case:\n\n- The `yAxis.min` attribute defines the minimum value for the solid gauge chart.\n- The `yAxis.max` attribute defines the maximum value for the solid gauge chart.\n- The `yAxis.tickAmount` attribute specifies the number of labels that should be displayed around the solid gauge chart. The labels will be evenly distributed based on the `yAxis.min` and `yAxis.max` attributes.\n\n### Creating a solid gauge chart\n\nTo create a solid gauge 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 one dimension and one measure, with a limit of one row. 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."]]