Skip to content

Commit 7c54fc2

Browse files
committed
put back text styling in scattergeo
1 parent aeef7f7 commit 7c54fc2

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/traces/scatter/style.js

+1
Original file line numberDiff line numberDiff line change
@@ -65,5 +65,6 @@ function styleOnSelect(gd, cd) {
6565
module.exports = {
6666
style: style,
6767
stylePoints: stylePoints,
68+
styleText: styleText,
6869
styleOnSelect: styleOnSelect
6970
};

src/traces/scattergeo/style.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ var d3 = require('d3');
1212
var Drawing = require('../../components/drawing');
1313
var 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

1719
module.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')

0 commit comments

Comments
 (0)