|
1 | 1 | 'use strict'; |
2 | 2 |
|
3 | 3 | var colorScaleAttrs = require('../../components/colorscale/attributes'); |
4 | | -var hoverformatAttrs = require('../../plots/hoverformat_attributes'); |
| 4 | +var axisHoverFormat = require('../../plots/hoverformat_attributes'); |
5 | 5 | var hovertemplateAttrs = require('../../plots/template_attributes').hovertemplateAttrs; |
6 | 6 | var mesh3dAttrs = require('../mesh3d/attributes'); |
7 | 7 | var baseAttrs = require('../../plots/attributes'); |
@@ -153,12 +153,12 @@ var attrs = { |
153 | 153 | }, |
154 | 154 |
|
155 | 155 | hovertemplate: hovertemplateAttrs({editType: 'calc'}, {keys: ['norm']}), |
156 | | - uhoverformat: hoverformatAttrs.uhoverformat, |
157 | | - vhoverformat: hoverformatAttrs.vhoverformat, |
158 | | - whoverformat: hoverformatAttrs.whoverformat, |
159 | | - xhoverformat: hoverformatAttrs.xhoverformat, |
160 | | - yhoverformat: hoverformatAttrs.yhoverformat, |
161 | | - zhoverformat: hoverformatAttrs.zhoverformat, |
| 156 | + uhoverformat: axisHoverFormat('u', 1), |
| 157 | + vhoverformat: axisHoverFormat('v', 1), |
| 158 | + whoverformat: axisHoverFormat('w', 1), |
| 159 | + xhoverformat: axisHoverFormat('x'), |
| 160 | + yhoverformat: axisHoverFormat('y'), |
| 161 | + zhoverformat: axisHoverFormat('z'), |
162 | 162 |
|
163 | 163 | showlegend: extendFlat({}, baseAttrs.showlegend, {dflt: false}) |
164 | 164 | }; |
|
0 commit comments