diff --git a/draftlogs/6481_add.md b/draftlogs/6481_add.md new file mode 100644 index 00000000000..aaf44d93420 --- /dev/null +++ b/draftlogs/6481_add.md @@ -0,0 +1 @@ + - Add `labelalias` to various axes namely cartesian, gl3d, polar, smith, ternary, carpet, indicator and colorbar [[#6481](https://github.com/plotly/plotly.js/pull/6481)] diff --git a/src/components/colorbar/attributes.js b/src/components/colorbar/attributes.js index 9811ca15da6..267976606bc 100644 --- a/src/components/colorbar/attributes.js +++ b/src/components/colorbar/attributes.js @@ -168,6 +168,7 @@ module.exports = overrideAll({ tickcolor: axesAttrs.tickcolor, ticklabelstep: axesAttrs.ticklabelstep, showticklabels: axesAttrs.showticklabels, + labelalias: axesAttrs.labelalias, tickfont: fontAttrs({ description: 'Sets the color bar\'s tick label font' }), diff --git a/src/components/colorbar/draw.js b/src/components/colorbar/draw.js index dd7a04d93de..45c56092ace 100644 --- a/src/components/colorbar/draw.js +++ b/src/components/colorbar/draw.js @@ -931,6 +931,7 @@ function mockColorBarAxis(gd, opts, zrange) { tickwidth: opts.tickwidth, tickcolor: opts.tickcolor, showticklabels: opts.showticklabels, + labelalias: opts.labelalias, ticklabelposition: opts.ticklabelposition, ticklabeloverflow: opts.ticklabeloverflow, ticklabelstep: opts.ticklabelstep, diff --git a/src/plots/cartesian/axes.js b/src/plots/cartesian/axes.js index f53c187c8c9..971bb438cfb 100644 --- a/src/plots/cartesian/axes.js +++ b/src/plots/cartesian/axes.js @@ -1660,6 +1660,11 @@ axes.tickText = function(ax, x, hover, noSuffixPrefix) { if(ax.ticksuffix && !isHidden(ax.showticksuffix)) out.text += ax.ticksuffix; } + if(ax.labelalias && ax.labelalias.hasOwnProperty(out.text)) { + var t = ax.labelalias[out.text]; + if(typeof t === 'string') out.text = t; + } + // Setup ticks and grid lines boundaries // at 1/2 a 'category' to the left/bottom if(ax.tickson === 'boundaries' || ax.showdividers) { diff --git a/src/plots/cartesian/layout_attributes.js b/src/plots/cartesian/layout_attributes.js index 80a39a73be2..dfd4d67af9d 100644 --- a/src/plots/cartesian/layout_attributes.js +++ b/src/plots/cartesian/layout_attributes.js @@ -633,6 +633,19 @@ module.exports = { editType: 'ticks', description: 'Determines whether or not the tick labels are drawn.' }, + labelalias: { + valType: 'any', + dflt: false, + editType: 'ticks', + description: [ + 'Replacement text for specific tick or hover labels.', + 'For example using {US: \'USA\', CA: \'Canada\'} changes US to USA', + 'and CA to Canada. The labels we would have shown must match', + 'the keys exactly, after adding any tickprefix or ticksuffix.', + 'labelalias can be used with any axis type, and both keys (if needed)', + 'and values (if desired) can include html-like tags or MathJax.' + ].join(' ') + }, automargin: { valType: 'flaglist', flags: ['height', 'width', 'left', 'right', 'top', 'bottom'], diff --git a/src/plots/cartesian/tick_label_defaults.js b/src/plots/cartesian/tick_label_defaults.js index a9bd36f1b09..35e87f2047b 100644 --- a/src/plots/cartesian/tick_label_defaults.js +++ b/src/plots/cartesian/tick_label_defaults.js @@ -8,6 +8,10 @@ var handleArrayContainerDefaults = require('../array_container_defaults'); module.exports = function handleTickLabelDefaults(containerIn, containerOut, coerce, axType, options) { if(!options) options = {}; + + var labelalias = coerce('labelalias'); + if(!Lib.isPlainObject(labelalias)) delete containerOut.labelalias; + var showAttrDflt = getShowAttrDflt(containerIn); var showTickLabels = coerce('showticklabels'); diff --git a/src/plots/gl3d/layout/axis_attributes.js b/src/plots/gl3d/layout/axis_attributes.js index 9c2732ad375..703c61cc76c 100644 --- a/src/plots/gl3d/layout/axis_attributes.js +++ b/src/plots/gl3d/layout/axis_attributes.js @@ -86,6 +86,7 @@ module.exports = overrideAll({ tickwidth: axesAttrs.tickwidth, tickcolor: axesAttrs.tickcolor, showticklabels: axesAttrs.showticklabels, + labelalias: axesAttrs.labelalias, tickfont: axesAttrs.tickfont, tickangle: axesAttrs.tickangle, tickprefix: axesAttrs.tickprefix, diff --git a/src/plots/polar/layout_attributes.js b/src/plots/polar/layout_attributes.js index 41321f262a4..d274b0dd7fd 100644 --- a/src/plots/polar/layout_attributes.js +++ b/src/plots/polar/layout_attributes.js @@ -35,6 +35,7 @@ var axisTickAttrs = overrideAll({ tickcolor: axesAttrs.tickcolor, ticklabelstep: axesAttrs.ticklabelstep, showticklabels: axesAttrs.showticklabels, + labelalias: axesAttrs.labelalias, showtickprefix: axesAttrs.showtickprefix, tickprefix: axesAttrs.tickprefix, showticksuffix: axesAttrs.showticksuffix, diff --git a/src/plots/smith/layout_attributes.js b/src/plots/smith/layout_attributes.js index 33cfa1cce0a..94563e7c00f 100644 --- a/src/plots/smith/layout_attributes.js +++ b/src/plots/smith/layout_attributes.js @@ -22,6 +22,7 @@ var axisTickAttrs = overrideAll({ tickwidth: extendFlat({}, axesAttrs.tickwidth, {dflt: 2}), tickcolor: axesAttrs.tickcolor, showticklabels: axesAttrs.showticklabels, + labelalias: axesAttrs.labelalias, showtickprefix: axesAttrs.showtickprefix, tickprefix: axesAttrs.tickprefix, showticksuffix: axesAttrs.showticksuffix, diff --git a/src/plots/ternary/layout_attributes.js b/src/plots/ternary/layout_attributes.js index 126ebdcea37..aa75bb8c84e 100644 --- a/src/plots/ternary/layout_attributes.js +++ b/src/plots/ternary/layout_attributes.js @@ -27,6 +27,7 @@ var ternaryAxesAttrs = { tickcolor: axesAttrs.tickcolor, ticklabelstep: axesAttrs.ticklabelstep, showticklabels: axesAttrs.showticklabels, + labelalias: axesAttrs.labelalias, showtickprefix: axesAttrs.showtickprefix, tickprefix: axesAttrs.tickprefix, showticksuffix: axesAttrs.showticksuffix, diff --git a/src/traces/carpet/axis_attributes.js b/src/traces/carpet/axis_attributes.js index cfc1b10dfd4..733ba93f53c 100644 --- a/src/traces/carpet/axis_attributes.js +++ b/src/traces/carpet/axis_attributes.js @@ -185,6 +185,7 @@ module.exports = { 'the high side, both, or neither side of the axis.' ].join(' ') }, + labelalias: extendFlat({}, axesAttrs.labelalias, {editType: 'calc'}), tickfont: fontAttrs({ editType: 'calc', description: 'Sets the tick font.' diff --git a/src/traces/indicator/attributes.js b/src/traces/indicator/attributes.js index 56b349a945f..8516878c8b7 100644 --- a/src/traces/indicator/attributes.js +++ b/src/traces/indicator/attributes.js @@ -319,6 +319,7 @@ module.exports = { tickcolor: axesAttrs.tickcolor, ticklabelstep: axesAttrs.ticklabelstep, showticklabels: axesAttrs.showticklabels, + labelalias: axesAttrs.labelalias, tickfont: fontAttrs({ description: 'Sets the color bar\'s tick label font' }), diff --git a/test/image/baselines/carpet_grid_dash.png b/test/image/baselines/carpet_grid_dash.png index 3bd7ca4f2c2..0a667649715 100644 Binary files a/test/image/baselines/carpet_grid_dash.png and b/test/image/baselines/carpet_grid_dash.png differ diff --git a/test/image/baselines/grid_subplot_types.png b/test/image/baselines/grid_subplot_types.png index 95817e23c78..41deca2b1a3 100644 Binary files a/test/image/baselines/grid_subplot_types.png and b/test/image/baselines/grid_subplot_types.png differ diff --git a/test/image/baselines/indicator_bullet.png b/test/image/baselines/indicator_bullet.png index 6eeed350e85..20636ec8d67 100644 Binary files a/test/image/baselines/indicator_bullet.png and b/test/image/baselines/indicator_bullet.png differ diff --git a/test/image/baselines/indicator_format_extremes.png b/test/image/baselines/indicator_format_extremes.png index 424b3579de4..4e142538ba2 100644 Binary files a/test/image/baselines/indicator_format_extremes.png and b/test/image/baselines/indicator_format_extremes.png differ diff --git a/test/image/baselines/mathjax3___ternary-mathjax.png b/test/image/baselines/mathjax3___ternary-mathjax.png index 9dabccd5af6..29267b0f394 100644 Binary files a/test/image/baselines/mathjax3___ternary-mathjax.png and b/test/image/baselines/mathjax3___ternary-mathjax.png differ diff --git a/test/image/baselines/polar_blank.png b/test/image/baselines/polar_blank.png index 1b953a2b7de..dab6d76b4ef 100644 Binary files a/test/image/baselines/polar_blank.png and b/test/image/baselines/polar_blank.png differ diff --git a/test/image/baselines/smith_blank.png b/test/image/baselines/smith_blank.png index ef07af29a22..d1f0782e18f 100644 Binary files a/test/image/baselines/smith_blank.png and b/test/image/baselines/smith_blank.png differ diff --git a/test/image/baselines/ternary-mathjax.png b/test/image/baselines/ternary-mathjax.png index f1790fb8169..ad0cebb9730 100644 Binary files a/test/image/baselines/ternary-mathjax.png and b/test/image/baselines/ternary-mathjax.png differ diff --git a/test/image/mocks/carpet_grid_dash.json b/test/image/mocks/carpet_grid_dash.json index 0696566aab0..1a010b982d7 100644 --- a/test/image/mocks/carpet_grid_dash.json +++ b/test/image/mocks/carpet_grid_dash.json @@ -37,6 +37,7 @@ "minorgriddash": "dash" }, "baxis": { + "labelalias": { "0": "ZERO2" }, "minorgridcount": 3, "gridcolor": "black", "minorgridcolor": "red", diff --git a/test/image/mocks/grid_subplot_types.json b/test/image/mocks/grid_subplot_types.json index 8b03f8478e7..27c95d67d8c 100644 --- a/test/image/mocks/grid_subplot_types.json +++ b/test/image/mocks/grid_subplot_types.json @@ -13,18 +13,23 @@ "domain": {"row": 2, "column": 0} }, {"type": "scattergeo", "lon": [0, -75], "lat": [0, 45], "marker": {"size": [20, 30]}}, - {"type": "heatmap", "z": [[1, 2], [4, 1]], "showscale": false, "xaxis": "x3", "yaxis": "y3"} + {"type": "heatmap", "z": [[1, 2], [4, 1]], "showscale": true, "xaxis": "x3", "yaxis": "y3", "colorbar": { + "yanchor": "bottom", + "y": 0, + "len": 0.3, + "labelalias": {"3": "2+1", "4": "22"} + }} ], "layout": { - "xaxis": {"title": {"text": "x"}}, - "xaxis2": {"title": {"text": "x2"}}, - "yaxis": {"title": {"text": "y"}}, - "yaxis2": {"title": {"text": "y2"}}, - "xaxis3": {"title": {"text": "x3"}}, - "yaxis3": {"title": {"text": "y3"}}, + "xaxis": {"title": {"text": "x"}, "labelalias": {"0": "ZERO2"}}, + "xaxis2": {"title": {"text": "x2"}, "labelalias": {"0": "ZERO2"}}, + "yaxis": {"title": {"text": "y"}, "labelalias": {"0": "ZERO2"}}, + "yaxis2": {"title": {"text": "y2"}, "labelalias": {"0": "ZERO2"}}, + "xaxis3": {"title": {"text": "x3"}, "labelalias": {"0": "ZERO2"}}, + "yaxis3": {"title": {"text": "y3"}, "labelalias": {"0": "ZERO2"}}, "grid": {"rows": 3, "columns": 3, "xgap": 0.3, "ygap": 0.3}, - "scene": {"domain": {"row": 1, "column": 1}}, - "ternary": {"domain": {"row": 1, "column": 2}}, + "scene": {"domain": {"row": 1, "column": 1}, "zaxis": {"labelalias": {"1": "", "1.5": "1+½", "2": "√4", "2.5": "5/2", "3.5": ""}}}, + "ternary": {"domain": {"row": 1, "column": 2}, "caxis": {"labelalias": {"1": "ONE"}}}, "geo": {"domain": {"row": 2, "column": 1}}, "width": 700, "height": 700 diff --git a/test/image/mocks/indicator_bullet.json b/test/image/mocks/indicator_bullet.json index db0145d2dfe..4a4b8965840 100644 --- a/test/image/mocks/indicator_bullet.json +++ b/test/image/mocks/indicator_bullet.json @@ -14,6 +14,9 @@ "gauge": { "shape": "bullet", "axis": { + "labelalias": { + "0": "ZERO2" + }, "range": [null, 300] }, "threshold": { diff --git a/test/image/mocks/indicator_format_extremes.json b/test/image/mocks/indicator_format_extremes.json index 4f16f613c5d..17b0695444d 100644 --- a/test/image/mocks/indicator_format_extremes.json +++ b/test/image/mocks/indicator_format_extremes.json @@ -171,6 +171,13 @@ { "type": "indicator", "mode": "number+delta+gauge", + "gauge": { + "axis": { + "labelalias": { + "1": "ONE" + } + } + }, "title": { "text": "null" }, diff --git a/test/image/mocks/polar_blank.json b/test/image/mocks/polar_blank.json index 71304374740..81b95c1b8e3 100644 --- a/test/image/mocks/polar_blank.json +++ b/test/image/mocks/polar_blank.json @@ -33,6 +33,9 @@ "x": [0, 0.46], "y": [0.56, 1] }, + "angularaxis": { + "labelalias": { "0°": "ZERO2" } + }, "radialaxis": { "title": {"text": "blank"}, "angle": 180 diff --git a/test/image/mocks/smith_blank.json b/test/image/mocks/smith_blank.json index 4bafc91ba6c..38a9eb0cd5f 100644 --- a/test/image/mocks/smith_blank.json +++ b/test/image/mocks/smith_blank.json @@ -41,6 +41,9 @@ "x": [0, 0.46], "y": [0.56, 1] }, + "imaginaryaxis": { + "labelalias": { "0": "ZERO2" } + }, "realaxis": { "side": "top" } diff --git a/test/image/mocks/ternary-mathjax.json b/test/image/mocks/ternary-mathjax.json index 3ffda077e4a..c6ca4408f5d 100644 --- a/test/image/mocks/ternary-mathjax.json +++ b/test/image/mocks/ternary-mathjax.json @@ -31,6 +31,8 @@ "title": { "text": "$B^2$" }, + "tickprefix": "$\\sqrt", + "ticksuffix": "^2$", "showline": true, "showgrid": true }, @@ -39,7 +41,11 @@ "text": "$C^2$" }, "showline": true, - "showgrid": true + "showgrid": true, + "labelalias": { + "20": "$(\\sqrt20)^2$", + "60": "Sixty" + } } }, "annotations": [ diff --git a/test/plot-schema.json b/test/plot-schema.json index 1863b863a2a..c9d0ccad116 100644 --- a/test/plot-schema.json +++ b/test/plot-schema.json @@ -1200,6 +1200,12 @@ "B" ] }, + "labelalias": { + "description": "Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.", + "dflt": false, + "editType": "colorbars", + "valType": "any" + }, "len": { "description": "Sets the length of the color bar This measure excludes the padding of both ends. That is, the color bar length is this length minus the padding on both ends.", "dflt": 1, @@ -3754,6 +3760,12 @@ "editType": "none", "valType": "string" }, + "labelalias": { + "description": "Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.", + "dflt": false, + "editType": "plot", + "valType": "any" + }, "layer": { "description": "Sets the layer on which this axis is displayed. If *above traces*, this axis is displayed above all the subplot's traces If *below traces*, this axis is displayed below all the subplot's traces, but above the grid lines. Useful when used together with scatter-like traces with `cliponaxis` set to *false* to show markers and/or text nodes above this axis.", "dflt": "above traces", @@ -4328,6 +4340,12 @@ "editType": "none", "valType": "string" }, + "labelalias": { + "description": "Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.", + "dflt": false, + "editType": "plot", + "valType": "any" + }, "layer": { "description": "Sets the layer on which this axis is displayed. If *above traces*, this axis is displayed above all the subplot's traces If *below traces*, this axis is displayed below all the subplot's traces, but above the grid lines. Useful when used together with scatter-like traces with `cliponaxis` set to *false* to show markers and/or text nodes above this axis.", "dflt": "above traces", @@ -5425,6 +5443,12 @@ "editType": "plot", "valType": "string" }, + "labelalias": { + "description": "Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.", + "dflt": false, + "editType": "plot", + "valType": "any" + }, "linecolor": { "description": "Sets the axis line color.", "dflt": "#444", @@ -5987,6 +6011,12 @@ "editType": "plot", "valType": "string" }, + "labelalias": { + "description": "Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.", + "dflt": false, + "editType": "plot", + "valType": "any" + }, "linecolor": { "description": "Sets the axis line color.", "dflt": "#444", @@ -6549,6 +6579,12 @@ "editType": "plot", "valType": "string" }, + "labelalias": { + "description": "Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.", + "dflt": false, + "editType": "plot", + "valType": "any" + }, "linecolor": { "description": "Sets the axis line color.", "dflt": "#444", @@ -7761,6 +7797,12 @@ "editType": "plot", "valType": "string" }, + "labelalias": { + "description": "Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.", + "dflt": false, + "editType": "plot", + "valType": "any" + }, "layer": { "description": "Sets the layer on which this axis is displayed. If *above traces*, this axis is displayed above all the subplot's traces If *below traces*, this axis is displayed below all the subplot's traces, but above the grid lines. Useful when used together with scatter-like traces with `cliponaxis` set to *false* to show markers and/or text nodes above this axis.", "dflt": "above traces", @@ -7954,6 +7996,12 @@ "editType": "plot", "valType": "string" }, + "labelalias": { + "description": "Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.", + "dflt": false, + "editType": "plot", + "valType": "any" + }, "layer": { "description": "Sets the layer on which this axis is displayed. If *above traces*, this axis is displayed above all the subplot's traces If *below traces*, this axis is displayed below all the subplot's traces, but above the grid lines. Useful when used together with scatter-like traces with `cliponaxis` set to *false* to show markers and/or text nodes above this axis.", "dflt": "above traces", @@ -8235,6 +8283,12 @@ "editType": "plot", "valType": "string" }, + "labelalias": { + "description": "Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.", + "dflt": false, + "editType": "plot", + "valType": "any" + }, "layer": { "description": "Sets the layer on which this axis is displayed. If *above traces*, this axis is displayed above all the subplot's traces If *below traces*, this axis is displayed below all the subplot's traces, but above the grid lines. Useful when used together with scatter-like traces with `cliponaxis` set to *false* to show markers and/or text nodes above this axis.", "dflt": "above traces", @@ -8633,6 +8687,12 @@ "editType": "plot", "valType": "string" }, + "labelalias": { + "description": "Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.", + "dflt": false, + "editType": "plot", + "valType": "any" + }, "layer": { "description": "Sets the layer on which this axis is displayed. If *above traces*, this axis is displayed above all the subplot's traces If *below traces*, this axis is displayed below all the subplot's traces, but above the grid lines. Useful when used together with scatter-like traces with `cliponaxis` set to *false* to show markers and/or text nodes above this axis.", "dflt": "above traces", @@ -9037,6 +9097,12 @@ "editType": "plot", "valType": "string" }, + "labelalias": { + "description": "Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.", + "dflt": false, + "editType": "plot", + "valType": "any" + }, "layer": { "description": "Sets the layer on which this axis is displayed. If *above traces*, this axis is displayed above all the subplot's traces If *below traces*, this axis is displayed below all the subplot's traces, but above the grid lines. Useful when used together with scatter-like traces with `cliponaxis` set to *false* to show markers and/or text nodes above this axis.", "dflt": "above traces", @@ -10169,6 +10235,12 @@ "editType": "none", "valType": "string" }, + "labelalias": { + "description": "Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.", + "dflt": false, + "editType": "ticks", + "valType": "any" + }, "layer": { "description": "Sets the layer on which this axis is displayed. If *above traces*, this axis is displayed above all the subplot's traces If *below traces*, this axis is displayed below all the subplot's traces, but above the grid lines. Useful when used together with scatter-like traces with `cliponaxis` set to *false* to show markers and/or text nodes above this axis.", "dflt": "above traces", @@ -11427,6 +11499,12 @@ "editType": "none", "valType": "string" }, + "labelalias": { + "description": "Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.", + "dflt": false, + "editType": "ticks", + "valType": "any" + }, "layer": { "description": "Sets the layer on which this axis is displayed. If *above traces*, this axis is displayed above all the subplot's traces If *below traces*, this axis is displayed below all the subplot's traces, but above the grid lines. Useful when used together with scatter-like traces with `cliponaxis` set to *false* to show markers and/or text nodes above this axis.", "dflt": "above traces", @@ -12823,6 +12901,12 @@ "B" ] }, + "labelalias": { + "description": "Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.", + "dflt": false, + "editType": "colorbars", + "valType": "any" + }, "len": { "description": "Sets the length of the color bar This measure excludes the padding of both ends. That is, the color bar length is this length minus the padding on both ends.", "dflt": 1, @@ -14344,6 +14428,12 @@ "B" ] }, + "labelalias": { + "description": "Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.", + "dflt": false, + "editType": "colorbars", + "valType": "any" + }, "len": { "description": "Sets the length of the color bar This measure excludes the padding of both ends. That is, the color bar length is this length minus the padding on both ends.", "dflt": 1, @@ -17301,6 +17391,12 @@ "min": 0, "valType": "number" }, + "labelalias": { + "description": "Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.", + "dflt": false, + "editType": "calc", + "valType": "any" + }, "labelpadding": { "description": "Extra padding between label and the axis", "dflt": 10, @@ -17863,6 +17959,12 @@ "min": 0, "valType": "number" }, + "labelalias": { + "description": "Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.", + "dflt": false, + "editType": "calc", + "valType": "any" + }, "labelpadding": { "description": "Extra padding between label and the axis", "dflt": 10, @@ -18568,6 +18670,12 @@ "B" ] }, + "labelalias": { + "description": "Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.", + "dflt": false, + "editType": "colorbars", + "valType": "any" + }, "len": { "description": "Sets the length of the color bar This measure excludes the padding of both ends. That is, the color bar length is this length minus the padding on both ends.", "dflt": 1, @@ -19567,6 +19675,12 @@ "B" ] }, + "labelalias": { + "description": "Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.", + "dflt": false, + "editType": "colorbars", + "valType": "any" + }, "len": { "description": "Sets the length of the color bar This measure excludes the padding of both ends. That is, the color bar length is this length minus the padding on both ends.", "dflt": 1, @@ -20595,6 +20709,12 @@ "B" ] }, + "labelalias": { + "description": "Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.", + "dflt": false, + "editType": "colorbars", + "valType": "any" + }, "len": { "description": "Sets the length of the color bar This measure excludes the padding of both ends. That is, the color bar length is this length minus the padding on both ends.", "dflt": 1, @@ -21641,6 +21761,12 @@ "B" ] }, + "labelalias": { + "description": "Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.", + "dflt": false, + "editType": "colorbars", + "valType": "any" + }, "len": { "description": "Sets the length of the color bar This measure excludes the padding of both ends. That is, the color bar length is this length minus the padding on both ends.", "dflt": 1, @@ -23028,6 +23154,12 @@ "B" ] }, + "labelalias": { + "description": "Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.", + "dflt": false, + "editType": "colorbars", + "valType": "any" + }, "len": { "description": "Sets the length of the color bar This measure excludes the padding of both ends. That is, the color bar length is this length minus the padding on both ends.", "dflt": 1, @@ -23986,6 +24118,12 @@ "B" ] }, + "labelalias": { + "description": "Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.", + "dflt": false, + "editType": "colorbars", + "valType": "any" + }, "len": { "description": "Sets the length of the color bar This measure excludes the padding of both ends. That is, the color bar length is this length minus the padding on both ends.", "dflt": 1, @@ -25293,6 +25431,12 @@ "B" ] }, + "labelalias": { + "description": "Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.", + "dflt": false, + "editType": "colorbars", + "valType": "any" + }, "len": { "description": "Sets the length of the color bar This measure excludes the padding of both ends. That is, the color bar length is this length minus the padding on both ends.", "dflt": 1, @@ -27009,6 +27153,12 @@ "B" ] }, + "labelalias": { + "description": "Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.", + "dflt": false, + "editType": "colorbars", + "valType": "any" + }, "len": { "description": "Sets the length of the color bar This measure excludes the padding of both ends. That is, the color bar length is this length minus the padding on both ends.", "dflt": 1, @@ -28179,6 +28329,12 @@ "B" ] }, + "labelalias": { + "description": "Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.", + "dflt": false, + "editType": "calc", + "valType": "any" + }, "len": { "description": "Sets the length of the color bar This measure excludes the padding of both ends. That is, the color bar length is this length minus the padding on both ends.", "dflt": 1, @@ -29720,6 +29876,12 @@ "B" ] }, + "labelalias": { + "description": "Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.", + "dflt": false, + "editType": "colorbars", + "valType": "any" + }, "len": { "description": "Sets the length of the color bar This measure excludes the padding of both ends. That is, the color bar length is this length minus the padding on both ends.", "dflt": 1, @@ -30904,6 +31066,12 @@ "B" ] }, + "labelalias": { + "description": "Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.", + "dflt": false, + "editType": "colorbars", + "valType": "any" + }, "len": { "description": "Sets the length of the color bar This measure excludes the padding of both ends. That is, the color bar length is this length minus the padding on both ends.", "dflt": 1, @@ -32046,6 +32214,12 @@ "B" ] }, + "labelalias": { + "description": "Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.", + "dflt": false, + "editType": "colorbars", + "valType": "any" + }, "len": { "description": "Sets the length of the color bar This measure excludes the padding of both ends. That is, the color bar length is this length minus the padding on both ends.", "dflt": 1, @@ -33701,6 +33875,12 @@ "B" ] }, + "labelalias": { + "description": "Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.", + "dflt": false, + "editType": "colorbars", + "valType": "any" + }, "len": { "description": "Sets the length of the color bar This measure excludes the padding of both ends. That is, the color bar length is this length minus the padding on both ends.", "dflt": 1, @@ -35173,6 +35353,12 @@ "B" ] }, + "labelalias": { + "description": "Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.", + "dflt": false, + "editType": "plot", + "valType": "any" + }, "minexponent": { "description": "Hide SI prefix for 10^n if |n| is below this number. This only has an effect when `tickformat` is *SI* or *B*.", "dflt": 3, @@ -36014,6 +36200,12 @@ "B" ] }, + "labelalias": { + "description": "Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.", + "dflt": false, + "editType": "calc", + "valType": "any" + }, "len": { "description": "Sets the length of the color bar This measure excludes the padding of both ends. That is, the color bar length is this length minus the padding on both ends.", "dflt": 1, @@ -37236,6 +37428,12 @@ "B" ] }, + "labelalias": { + "description": "Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.", + "dflt": false, + "editType": "colorbars", + "valType": "any" + }, "len": { "description": "Sets the length of the color bar This measure excludes the padding of both ends. That is, the color bar length is this length minus the padding on both ends.", "dflt": 1, @@ -39224,6 +39422,12 @@ "B" ] }, + "labelalias": { + "description": "Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.", + "dflt": false, + "editType": "colorbars", + "valType": "any" + }, "len": { "description": "Sets the length of the color bar This measure excludes the padding of both ends. That is, the color bar length is this length minus the padding on both ends.", "dflt": 1, @@ -40187,6 +40391,12 @@ "B" ] }, + "labelalias": { + "description": "Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.", + "dflt": false, + "editType": "colorbars", + "valType": "any" + }, "len": { "description": "Sets the length of the color bar This measure excludes the padding of both ends. That is, the color bar length is this length minus the padding on both ends.", "dflt": 1, @@ -43754,6 +43964,12 @@ "B" ] }, + "labelalias": { + "description": "Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.", + "dflt": false, + "editType": "colorbars", + "valType": "any" + }, "len": { "description": "Sets the length of the color bar This measure excludes the padding of both ends. That is, the color bar length is this length minus the padding on both ends.", "dflt": 1, @@ -46007,6 +46223,12 @@ "B" ] }, + "labelalias": { + "description": "Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.", + "dflt": false, + "editType": "calc", + "valType": "any" + }, "len": { "description": "Sets the length of the color bar This measure excludes the padding of both ends. That is, the color bar length is this length minus the padding on both ends.", "dflt": 1, @@ -46596,6 +46818,12 @@ "B" ] }, + "labelalias": { + "description": "Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.", + "dflt": false, + "editType": "calc", + "valType": "any" + }, "len": { "description": "Sets the length of the color bar This measure excludes the padding of both ends. That is, the color bar length is this length minus the padding on both ends.", "dflt": 1, @@ -48079,6 +48307,12 @@ "B" ] }, + "labelalias": { + "description": "Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.", + "dflt": false, + "editType": "colorbars", + "valType": "any" + }, "len": { "description": "Sets the length of the color bar This measure excludes the padding of both ends. That is, the color bar length is this length minus the padding on both ends.", "dflt": 1, @@ -49968,6 +50202,12 @@ "B" ] }, + "labelalias": { + "description": "Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.", + "dflt": false, + "editType": "calc", + "valType": "any" + }, "len": { "description": "Sets the length of the color bar This measure excludes the padding of both ends. That is, the color bar length is this length minus the padding on both ends.", "dflt": 1, @@ -51992,6 +52232,12 @@ "B" ] }, + "labelalias": { + "description": "Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.", + "dflt": false, + "editType": "calc", + "valType": "any" + }, "len": { "description": "Sets the length of the color bar This measure excludes the padding of both ends. That is, the color bar length is this length minus the padding on both ends.", "dflt": 1, @@ -53978,6 +54224,12 @@ "B" ] }, + "labelalias": { + "description": "Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.", + "dflt": false, + "editType": "calc", + "valType": "any" + }, "len": { "description": "Sets the length of the color bar This measure excludes the padding of both ends. That is, the color bar length is this length minus the padding on both ends.", "dflt": 1, @@ -55188,6 +55440,12 @@ "B" ] }, + "labelalias": { + "description": "Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.", + "dflt": false, + "editType": "colorbars", + "valType": "any" + }, "len": { "description": "Sets the length of the color bar This measure excludes the padding of both ends. That is, the color bar length is this length minus the padding on both ends.", "dflt": 1, @@ -57069,6 +57327,12 @@ "B" ] }, + "labelalias": { + "description": "Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.", + "dflt": false, + "editType": "calc", + "valType": "any" + }, "len": { "description": "Sets the length of the color bar This measure excludes the padding of both ends. That is, the color bar length is this length minus the padding on both ends.", "dflt": 1, @@ -58937,6 +59201,12 @@ "B" ] }, + "labelalias": { + "description": "Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.", + "dflt": false, + "editType": "colorbars", + "valType": "any" + }, "len": { "description": "Sets the length of the color bar This measure excludes the padding of both ends. That is, the color bar length is this length minus the padding on both ends.", "dflt": 1, @@ -60844,6 +61114,12 @@ "B" ] }, + "labelalias": { + "description": "Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.", + "dflt": false, + "editType": "colorbars", + "valType": "any" + }, "len": { "description": "Sets the length of the color bar This measure excludes the padding of both ends. That is, the color bar length is this length minus the padding on both ends.", "dflt": 1, @@ -62682,6 +62958,12 @@ "B" ] }, + "labelalias": { + "description": "Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.", + "dflt": false, + "editType": "colorbars", + "valType": "any" + }, "len": { "description": "Sets the length of the color bar This measure excludes the padding of both ends. That is, the color bar length is this length minus the padding on both ends.", "dflt": 1, @@ -64093,6 +64375,12 @@ "B" ] }, + "labelalias": { + "description": "Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.", + "dflt": false, + "editType": "colorbars", + "valType": "any" + }, "len": { "description": "Sets the length of the color bar This measure excludes the padding of both ends. That is, the color bar length is this length minus the padding on both ends.", "dflt": 1, @@ -65558,6 +65846,12 @@ "B" ] }, + "labelalias": { + "description": "Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.", + "dflt": false, + "editType": "colorbars", + "valType": "any" + }, "len": { "description": "Sets the length of the color bar This measure excludes the padding of both ends. That is, the color bar length is this length minus the padding on both ends.", "dflt": 1, @@ -66431,6 +66725,12 @@ "B" ] }, + "labelalias": { + "description": "Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.", + "dflt": false, + "editType": "calc", + "valType": "any" + }, "len": { "description": "Sets the length of the color bar This measure excludes the padding of both ends. That is, the color bar length is this length minus the padding on both ends.", "dflt": 1, @@ -68791,6 +69091,12 @@ "B" ] }, + "labelalias": { + "description": "Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.", + "dflt": false, + "editType": "colorbars", + "valType": "any" + }, "len": { "description": "Sets the length of the color bar This measure excludes the padding of both ends. That is, the color bar length is this length minus the padding on both ends.", "dflt": 1, @@ -71130,6 +71436,12 @@ "B" ] }, + "labelalias": { + "description": "Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.", + "dflt": false, + "editType": "calc", + "valType": "any" + }, "len": { "description": "Sets the length of the color bar This measure excludes the padding of both ends. That is, the color bar length is this length minus the padding on both ends.", "dflt": 1,