here are two examples using the .getSchemeByName
api reference
// Returns the Galaxy Berries scheme
var galaxyBerriesScheme = colorSchemes.getSchemeByName({
basemap: map.basemap,
geometryType: featureLayer.geometryType,
theme: "extremes",
name: "Galaxy Berries" });
and from the interactive histogram example
const redAndGreenScheme = colorSymbology.getSchemeByName({
basemap: map.basemap,
geometryType: "polygon",
theme: "above-and-below",
name: "Red and Green 4"
});
the string values for "Galaxy Berries" and "Red and Green 4" if change will make the method fail so I would like to know the list of acceptable name stings or where to find them in the api. I was trying to change the interactive Histogram color scheme to be sensitive to color blind people.
Thanks
Rex