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 = {};
1414Choropleth . attributes = require ( './attributes' ) ;
1515Choropleth . supplyDefaults = require ( './defaults' ) ;
1616Choropleth . colorbar = require ( '../heatmap/colorbar' ) ;
17- Choropleth . calc = require ( '../surface /calc' ) ;
17+ Choropleth . calc = require ( './calc' ) ;
1818Choropleth . plot = require ( './plot' ) . plot ;
1919
2020Choropleth . moduleType = 'trace' ;
You can’t perform that action at this time.
0 commit comments