-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
/
Copy pathindex.js
41 lines (35 loc) · 1.44 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
40
41
/**
* 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 Histogram2D = {};
Histogram2D.attributes = require('./attributes');
Histogram2D.supplyDefaults = require('./defaults');
Histogram2D.crossTraceDefaults = require('./cross_trace_defaults');
Histogram2D.calc = require('../heatmap/calc');
Histogram2D.plot = require('../heatmap/plot');
Histogram2D.layerName = 'heatmaplayer';
Histogram2D.colorbar = require('../heatmap/colorbar');
Histogram2D.style = require('../heatmap/style');
Histogram2D.hoverPoints = require('./hover');
Histogram2D.eventData = require('../histogram/event_data');
Histogram2D.moduleType = 'trace';
Histogram2D.name = 'histogram2d';
Histogram2D.basePlotModule = require('../../plots/cartesian');
Histogram2D.categories = ['cartesian', 'svg', '2dMap', 'histogram'];
Histogram2D.meta = {
hrName: 'histogram_2d',
description: [
'The sample data from which statistics are computed is set in `x`',
'and `y` (where `x` and `y` represent marginal distributions,',
'binning is set in `xbins` and `ybins` in this case)',
'or `z` (where `z` represent the 2D distribution and binning set,',
'binning is set by `x` and `y` in this case).',
'The resulting distribution is visualized as a heatmap.'
].join(' ')
};
module.exports = Histogram2D;