This example shows how to use the color scale chooser with the raster-marching-squares library.
Click on the color scale to change, remove or add the colors and values.
You can check a similar example that changes a shaded relief image
This tutorial has all the information needed to create the visualization.
Modified http://d3js.org/topojson.v1.min.js to a secure url
https://d3js.org/d3.v4.min.js
https://d3js.org/topojson.v1.min.js