Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Koleksi warna adalah serangkaian palet koordinat yang berfungsi dengan baik bersama-sama. Looker berisi 15 koleksi warna bawaan, yang memungkinkan pengguna membuat dasbor dan visualisasi bertema.
Setiap koleksi berisi jenis palet kategoris, berurutan, dan bercabang. Saat Anda membuat visualisasi baru dan memilih koleksi warna, Looker akan menetapkan jenis palet yang paling sesuai untuk jenis visualisasi tersebut. Namun, Anda dapat beralih ke palet lain dalam koleksi atau melakukan pengeditan pada palet yang digunakan.
ID koleksi warna dan ID palet dapat digunakan di dasbor LookML untuk menerapkan warna ke berbagai bagian visualisasi. ID koleksi dan ID palet untuk setiap koleksi warna kustom baru didasarkan pada nama setiap koleksi. Hal ini memungkinkan dasbor LookML yang menggunakan koleksi tersebut dirender secara konsisten di seluruh instance jika kedua instance memiliki koleksi kustom yang sama dan diberi nama secara identik.
Misalnya, koleksi warna kustom dengan nama Warna Kustom Perusahaan akan memiliki ID berikut:
ID koleksi: company-custom-colors
ID palet kategoris: company-custom-colors-categorical-0
ID palet berurutan: company-custom-colors-sequential-0
ID palet yang berbeda: company-custom-colors-diverging-0
Karena ID didasarkan pada nama koleksi, tidak ada dua koleksi di satu instance yang dapat memiliki nama yang sama. Selain itu, ID koleksi dan ID palet tidak akan berubah jika nama koleksi warna diubah.
Koleksi warna bawaan Looker menerima ID alfanumerik khusus instance.
Palet koleksi warna Looker
Setiap koleksi warna berisi palet kategoris, berurutan, dan bercabang.
Palet kategoris berguna untuk mengilustrasikan perbedaan antar-seri jika data tidak diurutkan secara inheren.
Palet berurutan berguna untuk memvisualisasikan data numerik atau yang diurutkan yang mencakup nilai rendah hingga tinggi.
Palet yang berbeda berguna untuk menampilkan data yang memiliki nilai tengah yang bermakna atau netral, seperti nol, dengan nilai positif dan negatif di kedua sisinya.
Koleksi warna Dalton mengakomodasi berbagai bentuk kekurangan penglihatan warna.
[[["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,["# Color collections\n\n| **Note:** This page is part of the [Retrieve and chart data](/looker/docs/retrieve-and-chart-data) learning series.\n\nA color collection is a set of coordinating palettes that work well together. Looker contains 15 built-in color collections, which lets users create themed visualizations and dashboards.\n\nEach collection contains categorical, sequential, and diverging palette types. When you create a new visualization and select a color collection, Looker defaults to the palette type that works best for that type of visualization. However, you can change to a different palette in the collection or make edits to the palette you're using.\n\nLooker admins can [set a default color collection](/looker/docs/admin-panel-general-settings#setting_a_default_color_collection) for all visualizations. Admins can also [create custom color collections](/looker/docs/admin-panel-general-settings#creating_a_custom_color_collection).\n\nColor collection IDs\n--------------------\n\nColor collection IDs and palette IDs can be used in LookML dashboards to apply colors to various parts of visualizations. Collection IDs and palette IDs for any new custom color collections are based on each collection's name. This lets LookML dashboards that use those collections render consistently across instances if both instances have the same custom collections named identically.\n\nFor example, a custom color collection with the name Company Custom Colors would have the following IDs:\n\n- **collection ID** : `company-custom-colors`\n- **categorical palette ID** : `company-custom-colors-categorical-0`\n- **sequential palette ID** : `company-custom-colors-sequential-0`\n- **diverging palette ID** : `company-custom-colors-diverging-0`\n\nBecause IDs are based on collection names, no two collections on a single instance can have the same name. Additionally, the collection ID and palette IDs don't change if a color collection's name is changed.\n\nLooker's built-in color collections receive instance-specific alphanumeric IDs.\n\n\nLooker's color collection palettes\n----------------------------------\n\nEach color collection contains categorical, sequential, and diverging palettes.\n\n- Categorical palettes are useful for illustrating the differences between series when the data isn't inherently ordered.\n- Sequential palettes are useful for visualizing ordered or numeric data that spans from low to high values.\n- Diverging palettes are useful for displaying data that has a meaningful or neutral central value, such as zero, with positive and negative values on either side.\n\nThe Dalton color collection accommodates various forms of color vision deficiency."]]