@@ -13,13 +13,16 @@ var Plotly = require('../../plotly');
13
13
var d3 = require ( 'd3' ) ;
14
14
15
15
var Color = require ( '../../components/color' ) ;
16
+ var Drawing = require ( '../../components/drawing' ) ;
17
+
18
+ var getColorscale = require ( '../../components/colorscale/get_scale' ) ;
19
+ var makeScaleFunction = require ( '../../components/colorscale/make_scale_function' ) ;
16
20
var getTopojsonFeatures = require ( '../../lib/topojson_utils' ) . getTopojsonFeatures ;
17
21
var locationToFeature = require ( '../../lib/geo_location_utils' ) . locationToFeature ;
18
22
var arrayToCalcItem = require ( '../../lib/array_to_calc_item' ) ;
19
- var getColorscale = require ( '../../components/colorscale/get_scale' ) ;
20
- var makeScaleFunction = require ( '../../components/colorscale/make_scale_function' ) ;
21
23
22
24
var constants = require ( '../../constants/geo_constants' ) ;
25
+ var attributes = require ( './attributes' ) ;
23
26
24
27
var plotChoropleth = module . exports = { } ;
25
28
@@ -141,7 +144,7 @@ plotChoropleth.style = function(geo) {
141
144
d3 . select ( this )
142
145
. attr ( 'fill' , function ( d ) { return sclFunc ( d . z ) ; } )
143
146
. call ( Color . stroke , d . mlc || markerLine . color )
144
- . call ( Plotly . Drawing . dashLine , '' , d . mlw || markerLine . width ) ;
147
+ . call ( Drawing . dashLine , '' , d . mlw || markerLine . width ) ;
145
148
} ) ;
146
149
} ) ;
147
150
} ;
@@ -157,7 +160,7 @@ function makeCleanHoverLabelsFunc(geo, trace) {
157
160
}
158
161
159
162
var hoverinfoParts = ( hoverinfo === 'all' ) ?
160
- Plotly . Choropleth . attributes . hoverinfo . flags :
163
+ attributes . hoverinfo . flags :
161
164
hoverinfo . split ( '+' ) ;
162
165
163
166
var hasName = ( hoverinfoParts . indexOf ( 'name' ) !== - 1 ) ,
0 commit comments