---
schema_version: "1"
id: 3d0905449eac4bbe5a1f666128a10301227face530d73e6ad940857ee4de89bd
title: 颜色图例
collection: tableau
version: current
locale: zh-cn
portal_url: https://docs.salesforce.com/tableau/current/zh-cn/reader/desktop/colors.md
canonical_url: https://help.tableau.com/current/reader/desktop/zh-cn/colors.htm
source_site: help.tableau.com
content_type: documentation
content_hash: a3448f54994a5eabc26ee46142819afe9e8daaa274e669510f39212a45bc133d
description: 颜色图例可以是分类图例或定量图例。分类图例表示离散类别（例如客户名称和区域），而定量图例表示数值范围（例如销售额和利润）。
---
[跳转到主要内容](#main-content)

# 颜色图例

颜色图例可以是分类图例或定量图例。分类图例表示离散类别（例如客户名称和区域），而定量图例表示数值范围（例如销售额和利润）。

<table cellspacing="0" width="41.458%" style="margin-left: 0;margin-right: auto;"><colgroup><col style="width: 52.624%;"><col style="width: 47.376%;"></colgroup><tbody><tr style="vertical-align: top;height: 23px;"><td style="width: 52.624%;padding-right: 10px;padding-left: 10px;"><p>分类图例</p></td><td style="width: 47.376%;padding-right: 10px;padding-left: 10px;"><p>定量图例</p></td></tr><tr style="vertical-align: top;height: 96px;"><td style="width: 52.624%;padding-right: 10px;padding-left: 10px;"><p><img src="https://help.tableau.com/current/reader/desktop/zh-cn/Img/color1_155x102.png" alt="" style="border: none;width: 155;height: 102;" border="0"></p></td><td style="width: 47.376%;padding-right: 10px;padding-left: 10px;"><p><img src="https://help.tableau.com/current/reader/desktop/zh-cn/Img/color2.png" alt="" style="border: none;" width="156" height="56" border="0"></p></td></tr></tbody></table>

#### 若要编辑分类颜色图例，请执行以下操作：

1. 右键单击（在 Mac 上按住 Control 单击）图例，并选择“编辑颜色”。
2. 在左侧的列表中选择数据项，然后在右侧的色板中选择新颜色。
3. 单击“确定”。

注意：可以在“编辑颜色”对话框右上角的下拉列表中选择其他调色板。

#### 若要编辑定量颜色图例，请执行以下操作：

1. 右键单击（在 Mac 上按住 Control 单击）图例，并选择“编辑颜色”。
2. 单击色坡旁边的颜色指示器，然后在色谱中选择新颜色。
3. 还可以指定下列一个或多个选项：
    
    - 渐变颜色 — 将值分组为统一的数据桶，其中每个数据桶都指定有一个唯一颜色。
    - 倒序 — 切换范围中的颜色顺序。
    - 使用完整颜色范围 — 为范围中的开始数字和结束数字指定全色浓度。
    
    （仅在使用发散调色板时可用）。
4. （可选）使用“高级”选项定义颜色范围的起始值、中心值和结束值。
5. 完成后，单击“确定”。

注意： 可以在“编辑颜色”对话框顶部的下拉列表中选择其他调色板。