Logarithmic normalization for colorscale/colorbar?

Hi. Was this colorscale type implemented? We noticed that the description for the dtick property hints that this might be implemented but I am not getting it to work on the codepen.

This is a description of dtick on layout.coloraxis.colorbar

" If the axis type is “log”, then ticks are set every 10^(n"dtick) where n is the tick number. For example, to set a tick mark at 1, 10, 100, 1000, … set dtick to 1. To set tick marks at 1, 100, 10000, … set dtick to 2"

var layout = {
  coloraxis: {
    autocolorscale: false,
    colorscale: 'Rainbow', 
    showscale: true,
    type: 'log',
    colorbar: {
      xref:'container',
      tick0:0.1,
      dtick:2
    }
  },
2 Likes