Managing a color palette in Yandex DataLens
In Yandex DataLens, you can create, edit, or delete a color palette and configure the default palette.
Creating a color palette
Warning
To create a palette, you need the admin role for a DataLens instance.
To create a color palette:
-
Go to the DataLens home page
. -
In the left-hand panel, select
Service settings. -
Select the Appearance tab.
-
Under Palettes, add a new palette:
Gradient color paletteColor paletteA gradient color palette is used in charts for numerical measures.
-
Go to Gradient color palettes and click + Add palette.
-
In the window that opens, enter the following parameters:
-
Enter the Palette name at the top.
-
Enter the start value for the gradient color at the bottom left and its end value at the bottom right. For example, specify
0044A3on the left and8CCBFFon the right for a dark blue to light blue gradient.To add an intermediate gradient value, click
below and specify the value. You can check the changes in the preview window.
-
-
Click Save.
A color palette is used in charts for discrete values: measure names, dimension values.
-
Go to Color palettes and click + Add palette.
-
In the window that opens, enter the following parameters:
-
Enter the Palette name at the top.
-
In the list on the right, click + Add color and enter values for palette colors, in hex format.
There are 20 default colors. You can edit, add, or delete palette colors. To change the order of colors, drag them using the mouse. You can check the changes in the preview window.
-
-
Click Save.
-
Editing a color palette
To change a color palette:
- Go to the DataLens home page
. - In the left-hand panel, select
Service settings. - Select the Appearance tab.
- Go to Palettes and click the line with the palette to change.
- Make changes in the Configure color palettes window.
- Click Save.
Deleting a color palette
Note
Deleting a color palette resets the color settings in all charts where it was used.
To delete a color palette:
- Go to the DataLens home page
. - In the left-hand panel, select
Service settings. - Select the Appearance tab.
- Go to Palettes and hover over the name of the palette to delete.
- Click
next to it and select Delete. - Click Delete.
Setting the default color palette
For DataLens instances created before September 16, 2025, the default palette is Classic 20. For instances created after September 16, 2025, the default palette is Default 20.
To set any of the preinstalled or previously added color palettes as default:
- Go to the DataLens home page
. - In the left-hand panel, select
Service settings. - Select the Appearance tab.
- Under Palettes, select the default palette from the list. The default palette will be applied to all charts that use it. In charts with custom palette settings, the palette will not change.
If you delete the default color palette, the Default 20 palette will apply instead. It will be applied to all charts that use the default palette.