Creating a color palette in Yandex DataLens
Warning
To create a palette, the user needs 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. -
Under Palettes, add a new palette:
Gradient color paletteColor paletteThe gradient color palette is used in charts for numerical indicators.
-
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 gradient from dark-blue to light-blue.To add an intermediate gradient value, click
below and specify the value. The changes will be displayed in the preview window.
-
-
Click Save.
The color palette is used in charts for discrete values: indicator names, measurement 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 pointer. The changes will be displayed in the preview window.
-
-
Click Save.
-
Changing a color palette
To change a color palette:
- Go to the DataLens home page
. - In the left-hand panel, select
Service settings. - 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. - Go to Palettes and hover over the name of the palette to delete.
- Click
on the right and select Delete. - Click Delete.
Setting the default color pallete
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 palletes as default:
- Go to the DataLens home page
. - In the left-hand panel, select
Service settings. - Under Palletes, select a default pallete from the list. The default pallete will be applied to all charts that use the default pallete. In charts with custom pallete settings, the pallete will not change.
If you delete the default color pallete, the Default 20 pallete will apply instead. It will be applied to all charts that use the default pallete.