File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -65,5 +65,6 @@ function styleOnSelect(gd, cd) {
6565module . exports = {
6666 style : style ,
6767 stylePoints : stylePoints ,
68+ styleText : styleText ,
6869 styleOnSelect : styleOnSelect
6970} ;
Original file line number Diff line number Diff line change @@ -12,7 +12,9 @@ var d3 = require('d3');
1212var Drawing = require ( '../../components/drawing' ) ;
1313var Color = require ( '../../components/color' ) ;
1414
15- var stylePoints = require ( '../scatter/style' ) . stylePoints ;
15+ var scatterStyle = require ( '../scatter/style' ) ;
16+ var stylePoints = scatterStyle . stylePoints ;
17+ var styleText = scatterStyle . styleText ;
1618
1719module . exports = function style ( gd , calcTrace ) {
1820 if ( calcTrace ) styleTrace ( gd , calcTrace ) ;
@@ -25,6 +27,7 @@ function styleTrace(gd, calcTrace) {
2527 s . style ( 'opacity' , calcTrace [ 0 ] . trace . opacity ) ;
2628
2729 stylePoints ( s , trace , gd ) ;
30+ styleText ( s , trace , gd ) ;
2831
2932 // this part is incompatible with Drawing.lineGroupStyle
3033 s . selectAll ( 'path.js-line' )
You can’t perform that action at this time.
0 commit comments