How to change the default color of the coordinate system thermal map in echarts?

heatmap thermal map is introduced, as follows:

clipboard.png

how to customize the desired color in the gray part that indicates that the data is 0, such as black or white.

Jul.18,2021

Hello, you need to add an inRange configuration item to visualMap to manipulate the gradient color of the thermal area. The example is as follows:

visualMap: {
        show:true,
        min: 0,
        max: 10,
        calculable: true,
        orient: 'horizontal',
        left: 'center',
        bottom: '15%',
        inRange: {
                color: ['-sharp3398DB','yellow']
            }
    }

all have corresponding parameters. Take a closer look at the document


how to modify the landlord


has the landlord finally achieved the effect

?
Menu