Skip to content

Instantly share code, notes, and snippets.

@shacheeswadia
Created November 21, 2021 10:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shacheeswadia/6bc97ad8019ac344a0a388074b4b1109 to your computer and use it in GitHub Desktop.
Save shacheeswadia/6bc97ad8019ac344a0a388074b4b1109 to your computer and use it in GitHub Desktop.
// Create color scale
var customColorScale = anychart.scales.linearColor();
customColorScale.colors([
'#ffdd0e',
'#BCA600',
'#76A100',
'#1b8366',
'#007561'
]);
// Set color scale
chart.colorScale(customColorScale);
// enable and configure color range
chart.colorRange().enabled(true).orientation('right');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment