File tree Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change
1
+ /**
2
+ * Copyright 2012-2016, Plotly, Inc.
3
+ * All rights reserved.
4
+ *
5
+ * This source code is licensed under the MIT license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
8
+
9
+
10
+ 'use strict' ;
11
+
12
+ var colorscaleCalc = require ( '../../components/colorscale/calc' ) ;
13
+
14
+
15
+ module . exports = function calc ( gd , trace ) {
16
+ colorscaleCalc ( trace , trace . z , '' , 'z' ) ;
17
+ } ;
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ var Choropleth = {};
14
14
Choropleth . attributes = require ( './attributes' ) ;
15
15
Choropleth . supplyDefaults = require ( './defaults' ) ;
16
16
Choropleth . colorbar = require ( '../heatmap/colorbar' ) ;
17
- Choropleth . calc = require ( '../surface /calc' ) ;
17
+ Choropleth . calc = require ( './calc' ) ;
18
18
Choropleth . plot = require ( './plot' ) . plot ;
19
19
20
20
Choropleth . moduleType = 'trace' ;
You can’t perform that action at this time.
0 commit comments