Datapicta logo
© 2026 DataPicta B.V.

A Cool Heatmap

Learn how to create a cool heatmap using DataPicta.

Go to app.datapicta.com to open the DataPicta application.

1. Add Data

Every chart starts with a dataset. Click Add Data.

Add Data

2. Use Sample Data Set

Fortunately, DataPicta already provides a useful dataset that we can utilize for a heatmap. Click on Use Sample Data.

Use Sample Data Set

3. Select Alaska Weather Data

Click "Alaska Monthly Weather" to choose the specific dataset for this chart.

Select Alaska Weather Data

4. Add Data

Click "Add data" to include this dataset into your chart.

Add Data

5. View Data

The data includes two text fields and one numeric field. This setup is precisely what a heatmap requires: the text fields will represent the X and Y axes, while the numeric field will be used to color the items in the heatmap.

View Data

6. Add Picta

To add the heatmap picta, click on "Add Picta."

Add Picta

7. Choose Heatmap

Click on heatmap.

Choose Heatmap

8. View Heatmap

A heatmap is generated from the dataset, automatically utilizing the text fields for the axes and the numerical field for the color representation. However, there is potential for enhancement.

View Heatmap

9. Enable Item Style

Let’s begin by modifying the items, that is each square in the heatmap. Click "Item Style" to enable changes to these items.

Enable Item Style

10. Set Border Color

To enhance the items, we will add a white border around them. Click "pick" next to the border color to open the color dialog.

Set Border Color

11. Select the White Color

Move the color picker to the upper left corner where the gradient is completely white, then click "Apply."

Select the White Color

12. Set the Border Width

Set the border width to 2 pixels.

Set the Border Width

13. Close the Heatmap Panel

Now close the heatmap panel.

Close the Heatmap Panel

14. Open the Visual Axis Panel

Open the Visual Axis Panel. This Canvas element was automatically added when you included the Heatmap Picta, as a heatmap always utilizes color as a visual axis. However, the current colors do not accurately represent temperatures.

Open the Visual Axis Panel

15. View Min and Max values

The minimum and maximum values are prefilled with the lowest and highest temperatures from the data. However, it is more logical to use integers in this context. Therefore, we will round down the minimum value and round up the maximum value.

View Min and Max values

16. Set Min and Max values

Set the minimum to -22 degrees and the maximum to +17 degrees Celsius. While these measurements are taken in the USA, scientific temperature measurements are conducted in Celsius, not Fahrenheit.

Set Min and Max values

17. View colors

Two colors are automatically set. A gradient between these colors is applied to the heatmap. Let's choose a light blue color for low temperatures and an orange color for warmer temperatures.

View colors

18. Set Colors

After selecting two colors, you may notice that the overall heatmap displays more orange than blue, which does not accurately reflect our intended outcome. In fact, you can assign more than two colors to create a gradient, so let's incorporate a darker blue shade to blend between these colors.

Set Colors

19. Order the colors

After adding a darker blue color, you should position it between the light blue and orange color.

Order the colors

20. View resulting colors

This is much better; it accurately represents the temperatures. Next we will customize the legend for this chart.

View resulting colors

21. Improve the Legend

I personally prefer legends to be centered beneath the chart. For horizontal location, select 'Center', and for Orientation, choose 'Horizontal'.

Improve the Legend

22. Enter legend text

To enhance the legend, you can add text on both the left and right sides. Enter -22 degrees for the left and +17 degrees Celsius for the right.

Enter legend text

23. Close the panel

Now close the Visual Axis.

Close the panel

24. Add Canvas

Add a new canvas element.

Add Canvas

25. Select Title

And select title to add a title element to the chart.

Select Title

26. Select Title Field

Click "Title" to edit the main chart title text.

Select Title Field

27. Enter Chart Title

Fill "Alaska Monthly Weather" as the main title of the chart, as these measurement were made in Alaska.

Enter Chart Title

28. Add one more canvas element

Now, add one more canvas element.

Add one more canvas element

29. Select Tooltip

Select the Tooltip this time.

Select Tooltip

30. Click the Formatter

The tooltip is now functional; however, we would like the text within the tooltip to show a different message than the default. To achieve this, click on Formatter.

Click the Formatter

31. Open Formatter Editor

Click here to open the formatter editor for tooltip customization.

Open Formatter Editor

32. Format the tooltip text

The text we will enter here is actual HTML code and resembles the first example written below. You may pause the video or copy and paste the text from the description below.

Format the tooltip text

33. Save Tooltip Settings

This HTML code will display two lines in the tooltip. The first line will be the data from the first and second field, which is the Month followed by the Year. After the break element, the second line follows, showing the third field, which is the average temperature for that month.

Save Tooltip Settings

34. Save Tooltip Settings

Now close the formatter dialog.

Save Tooltip Settings

35. View Tooltip

Now hover over the chart to see the result.

View Tooltip

36. Add Canvas Element

We will add one final canvas element.

Add Canvas Element

37. Pick Chart Ratio

Click the Aspect Ratio element.

Pick Chart Ratio

38. Set Aspect Ratio

To make the items appear more like a square, we will adjust the aspect ratio to 8 by 5.

Set Aspect Ratio

39. Enjoy

You created a beautiful heatmap; you should be proud.

Enjoy