File tree 2 files changed +11
-10
lines changed
2 files changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -28,15 +28,7 @@ var attrs = module.exports = overrideAll({
28
28
y0 : scatterAttrs . y0 ,
29
29
dy : scatterAttrs . dy ,
30
30
31
- text : extendFlat ( { } , scatterAttrs . text , {
32
- description : [
33
- 'Sets text elements associated with each (x,y) pair to appear on hover.' ,
34
- 'If a single string, the same string appears over' ,
35
- 'all the data points.' ,
36
- 'If an array of string, the items are mapped in order to the' ,
37
- 'this trace\'s (x,y) coordinates.'
38
- ] . join ( ' ' )
39
- } ) ,
31
+ text : scatterAttrs . text ,
40
32
hovertext : scatterAttrs . hovertext ,
41
33
42
34
textposition : scatterAttrs . textposition ,
Original file line number Diff line number Diff line change 11
11
var scatterGlAttrs = require ( '../scattergl/attributes' ) ;
12
12
var cartesianIdRegex = require ( '../../plots/cartesian/constants' ) . idRegex ;
13
13
var templatedArray = require ( '../../plot_api/plot_template' ) . templatedArray ;
14
+ var extendFlat = require ( '../../lib/extend' ) . extendFlat ;
14
15
15
16
function makeAxesValObject ( axLetter ) {
16
17
return {
@@ -86,7 +87,15 @@ module.exports = {
86
87
87
88
// mode: {}, (only 'markers' for now)
88
89
89
- text : scatterGlAttrs . text ,
90
+ text : extendFlat ( { } , scatterGlAttrs . text , {
91
+ description : [
92
+ 'Sets text elements associated with each (x,y) pair to appear on hover.' ,
93
+ 'If a single string, the same string appears over' ,
94
+ 'all the data points.' ,
95
+ 'If an array of string, the items are mapped in order to the' ,
96
+ 'this trace\'s (x,y) coordinates.'
97
+ ] . join ( ' ' )
98
+ } ) ,
90
99
marker : scatterGlAttrs . marker ,
91
100
92
101
xaxes : makeAxesValObject ( 'x' ) ,
You can’t perform that action at this time.
0 commit comments