@@ -30,6 +30,70 @@ section of the :guilabel:`Customize` tab.
30
30
:figwidth: 251px
31
31
:alt: Field level customizations
32
32
33
+ .. _color-palette-customization:
34
+
35
+ Color Palette Customization
36
+ ---------------------------
37
+
38
+ Palette customization allows you to select custom colors for your
39
+ chart. To enable color customization, select the
40
+ :guilabel:`Customize` tab of the :guilabel:`Chart Type` column.
41
+ A toggle switch labeled :guilabel:`Custom Color Palette` appears in
42
+ the :guilabel:`General` section.
43
+
44
+ You can also customize individual colors in your palette. Most chart types
45
+ use a custom color picker with color swatches that correspond to your data
46
+ series.
47
+
48
+ .. figure:: /images/charts/custom-color-palette.png
49
+ :figwidth: 251px
50
+ :alt: Custom color palette selection
51
+
52
+ Depending on the chart type, each color swatch has a corresponding
53
+ number or a corresponding name:
54
+
55
+ - Single-series charts or multi-series charts created
56
+ :ref:`using the Series method<charts-series-encoding>`
57
+ have numbered color swatches.
58
+ - Multi-series charts created by
59
+ :ref:`mapping multiple fields<multiple-field-mappings>`
60
+ have color swatches with the names of your selected fields.
61
+
62
+ To change the color of the corresponding data series, click the color swatch.
63
+ You can select a new color with a color slider, by
64
+ entering a hex value, by entering RGB values, or by choosing a
65
+ predefined color. You can also drag and drop numbered color swatches to
66
+ rearrange the colors in your palette.
67
+
68
+ .. note::
69
+
70
+ By default, the custom color picker shows color swatches for 10
71
+ data series, but you can only modify as many of the swatches as
72
+ you have data series. The palette can expand to show 20 data series.
73
+ Charts will use as many colors as needed to show your chart,
74
+ starting from the first color. For example, if you have only two
75
+ data series in your chart, only the colors numbered ``1`` and
76
+ ``2`` have any effect on your chart.
77
+
78
+ Other chart types use a gradient color scale with a
79
+ set of pre-defined gradients. The
80
+ :ref:`heatmap <heatmap-chart-ref>` and :ref:`colored bar
81
+ and column <column-bar-chart-ref>` types use this method.
82
+
83
+ .. figure:: /images/charts/custom-gradient.png
84
+ :figwidth: 251px
85
+ :alt: Custom color palette selection
86
+
87
+ To close the color customization tool, click somewhere outside it.
88
+ To revert the entire chart to its default colors, set the
89
+ :guilabel:`Custom Color Palette` toggle switch back to :guilabel:`Off`.
90
+
91
+ Applicable Chart Types
92
+ ~~~~~~~~~~~~~~~~~~~~~~
93
+
94
+ This customization option is available for all chart types except
95
+ :ref:`Text <chart-type-text-charts>`.
96
+
33
97
Resize Labels
34
98
-------------
35
99
@@ -90,60 +154,3 @@ Applicable Chart Types
90
154
This customization option is available for all charts which may display
91
155
a legend. This includes any multi-series chart, as well as charts that
92
156
have a field mapped to a Color, Intensity, Shape or Size channel.
93
-
94
- .. _color-palette-customization:
95
-
96
- Color Palette Customization
97
- ---------------------------
98
-
99
- Palette customization allows you to select custom colors for your
100
- chart. To enable color customization, select the
101
- :guilabel:`Customize` tab of the :guilabel:`Chart Type` column.
102
- A toggle switch labeled :guilabel:`Custom Color Palette` appears in
103
- the :guilabel:`General` section.
104
-
105
- Most chart types allow you to customize individual colors in their
106
- palette. The :ref:`heatmap <heatmap-chart-ref>` and :ref:`colored bar
107
- and column <column-bar-chart-ref>` types use a gradient color scale,
108
- while other types use a custom color picker. The gradient color
109
- scale allows you to choose from a set of pre-defined gradients.
110
-
111
- .. figure:: /images/charts/custom-gradient.png
112
- :figwidth: 251px
113
- :alt: Custom color palette selection
114
-
115
- Other chart types use a color picker for selecting a customized
116
- set of colors.
117
-
118
- .. figure:: /images/charts/custom-color-palette.png
119
- :figwidth: 251px
120
- :alt: Custom color palette selection
121
-
122
- For chart types which use a color picker for customization,
123
- each numbered color swatch corresponds to a data series on the chart.
124
- Select a color swatch to modify the color of its corresponding
125
- data series. You can select a new color with a color slider, by
126
- entering a hex value, by entering RGB values, or by choosing a
127
- predefined color. You can also drag and drop the existing color
128
- selections if you want to use the current color choices but change
129
- which color goes with which data series.
130
-
131
- .. note::
132
-
133
- By default, the custom color picker shows color swatches for 10
134
- data series, but you can only modify as many of the swatches as
135
- you have data series. The palette can expand to show 20 data series.
136
- Charts will use as many colors as needed to show your chart,
137
- starting from the first color. For example, if you have only two
138
- data series in your chart, only the colors numbered ``1`` and
139
- ``2`` have any effect on your chart.
140
-
141
- To close the color customization tool, click somewhere outside it.
142
- To revert the entire chart to its default colors, set the
143
- :guilabel:`Custom Color Palette` toggle switch back to :guilabel:`Off`.
144
-
145
- Applicable Chart Types
146
- ~~~~~~~~~~~~~~~~~~~~~~
147
-
148
- This customization option is available for all chart types except
149
- :ref:`Text <chart-type-text-charts>`.
0 commit comments