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

?
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b349e5-342da.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b349e5-342da.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?