…ported on color bars
The colorbar tick axis is mocked with type 'linear' (mockColorBarAxis in
src/components/colorbar/draw.js), and clean_ticks.dtick silently falls
back to the default step for any non-numeric dtick on a linear axis.
So the *L<f>*, *D1*, *D2* (log) and *M<n>* (date) special strings that
the shared dtick description advertises have no effect on colorbar.dtick
or coloraxis.colorbar.dtick - they even degrade to a 1-unit linear step,
producing one garbage label per pixel of bar length (issue plotly#7376).
Give the colorbar dtick attribute its own accurate description: only
positive numbers are honored. Regenerate test/plot-schema.json and the
TS types accordingly.
Fixes the documentation half of #7376.
colorbar.dtick (and coloraxis.colorbar.dtick) inherits its description from the cartesian dtick attribute, which advertises the special log forms (L, D1, D2) and date form (M). None of them works on a color bar:
Measured behavior (verified against this branch's parent with a jsdom harness, heatmap spanning 10^0 to 10^9): setting colorbar: {dtick: 'D1'} does not error and does not produce decade ticks - it degrades to a 1-unit linear step over a z-range of 1e9, i.e. ~56 million candidate tick labels (the renderer draws one garbage label per pixel of bar length, e.g. -0.056233M). The identical dtick: 'D1' on a real log y-axis produces correct decade + minor ticks, confirming the colorbar path is the broken one. Numeric dtick values work fine on the same color bar.
This PR gives the color-bar dtick attribute its own accurate description: only positive numbers are honored; the log/date string forms are silently ignored. No behavior change. test/plot-schema.json and the generated TS types are regenerated accordingly (the schema diff is exactly the new description).
If maintainers would rather implement log-scale color bars than document the limitation, the mock axis type is the single place to start - happy to attempt that instead. But as long as strings are accepted-and-discarded, the docs should not claim they work.