Commit d7504ab
committed
docs(colorbar): document that log/date dtick string forms are not supported 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 #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.1 parent 81bb1cd commit d7504ab
4 files changed
Lines changed: 52 additions & 39 deletions
File tree
- draftlogs
- src
- components/colorbar
- types/generated
- test
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
156 | 159 | | |
157 | 160 | | |
158 | 161 | | |
159 | | - | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
160 | 172 | | |
161 | 173 | | |
162 | 174 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
239 | 239 | | |
240 | 240 | | |
241 | 241 | | |
242 | | - | |
| 242 | + | |
243 | 243 | | |
244 | 244 | | |
245 | 245 | | |
| |||
0 commit comments