Skip to content

Commit 587bae4

Browse files
committed
Start building cheater supplydfeaults
1 parent 2115e36 commit 587bae4

File tree

4 files changed

+28
-2
lines changed

4 files changed

+28
-2
lines changed

src/plots/plots.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -664,6 +664,7 @@ plots.supplyDataDefaults = function(dataIn, dataOut, layout, fullLayout) {
664664
var trace = dataIn[i],
665665
fullTrace = plots.supplyTraceDefaults(trace, cnt, fullLayout, i);
666666

667+
console.log('fullLayout:', JSON.stringify(fullLayout));
667668
fullTrace.index = i;
668669
fullTrace._input = trace;
669670
fullTrace._expandedIndex = cnt;

src/plots/subplot_defaults.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ module.exports = function handleSubplotDefaults(layoutIn, layoutOut, fullData, o
4949
var ids = Plots.findSubplotIds(fullData, subplotType),
5050
idsLength = ids.length;
5151

52+
console.log('ids:', ids);
53+
5254
var subplotLayoutIn, subplotLayoutOut;
5355

5456
function coerce(attr, dflt) {

src/traces/carpet/calc.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,16 @@ var isNumeric = require('fast-isnumeric');
1515
var Registry = require('../../registry');
1616
var Lib = require('../../lib');
1717
var Axes = require('../../plots/cartesian/axes');
18+
var maxRowLength =
1819

1920

2021
module.exports = function calc(gd, trace) {
21-
// prepare the raw data
22-
console.log('calc!:');
22+
var xa = Axes.getFromId(gd, trace.xaxis || 'x'),
23+
ya = Axes.getFromId(gd, trace.yaxis || 'y');
24+
25+
26+
var cd0 = {};
27+
28+
29+
return [cd0];
2330
};
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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+
/* this function constructs an array of arrays with offset per row in the
13+
* style of a cheater plot.
14+
*/
15+
module.exports = function constructCheater () {
16+
};

0 commit comments

Comments
 (0)