-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
/
Copy pathindex.js
39 lines (32 loc) · 1.22 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/**
* Copyright 2012-2018, Plotly, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
var Contour = {};
Contour.attributes = require('./attributes');
Contour.supplyDefaults = require('./defaults');
Contour.calc = require('./calc');
Contour.plot = require('./plot').plot;
Contour.style = require('./style');
Contour.colorbar = require('./colorbar');
Contour.hoverPoints = require('./hover');
Contour.moduleType = 'trace';
Contour.name = 'contour';
Contour.basePlotModule = require('../../plots/cartesian');
Contour.categories = ['cartesian', 'svg', '2dMap', 'contour', 'showLegend'];
Contour.meta = {
description: [
'The data from which contour lines are computed is set in `z`.',
'Data in `z` must be a {2D array} of numbers.',
'Say that `z` has N rows and M columns, then by default,',
'these N rows correspond to N y coordinates',
'(set in `y` or auto-generated) and the M columns',
'correspond to M x coordinates (set in `x` or auto-generated).',
'By setting `transpose` to *true*, the above behavior is flipped.'
].join(' ')
};
module.exports = Contour;