@@ -13,13 +13,16 @@ var Plotly = require('../../plotly');
1313var d3 = require ( 'd3' ) ;
1414
1515var 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' ) ;
1620var getTopojsonFeatures = require ( '../../lib/topojson_utils' ) . getTopojsonFeatures ;
1721var locationToFeature = require ( '../../lib/geo_location_utils' ) . locationToFeature ;
1822var arrayToCalcItem = require ( '../../lib/array_to_calc_item' ) ;
19- var getColorscale = require ( '../../components/colorscale/get_scale' ) ;
20- var makeScaleFunction = require ( '../../components/colorscale/make_scale_function' ) ;
2123
2224var constants = require ( '../../constants/geo_constants' ) ;
25+ var attributes = require ( './attributes' ) ;
2326
2427var plotChoropleth = module . exports = { } ;
2528
@@ -141,7 +144,7 @@ plotChoropleth.style = function(geo) {
141144 d3 . select ( this )
142145 . attr ( 'fill' , function ( d ) { return sclFunc ( d . z ) ; } )
143146 . call ( Color . stroke , d . mlc || markerLine . color )
144- . call ( Plotly . Drawing . dashLine , '' , d . mlw || markerLine . width ) ;
147+ . call ( Drawing . dashLine , '' , d . mlw || markerLine . width ) ;
145148 } ) ;
146149 } ) ;
147150} ;
@@ -157,7 +160,7 @@ function makeCleanHoverLabelsFunc(geo, trace) {
157160 }
158161
159162 var hoverinfoParts = ( hoverinfo === 'all' ) ?
160- Plotly . Choropleth . attributes . hoverinfo . flags :
163+ attributes . hoverinfo . flags :
161164 hoverinfo . split ( '+' ) ;
162165
163166 var hasName = ( hoverinfoParts . indexOf ( 'name' ) !== - 1 ) ,
0 commit comments