Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 48df699

Browse files
committed
add a some potential TODOs
1 parent 1a4c95e commit 48df699

File tree

6 files changed

+7
-1
lines changed

6 files changed

+7
-1
lines changed

src/plots/cartesian/axes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ var getDataConversions = axes.getDataConversions = function(gd, trace, target, t
157157
ax.d2c(targetArray[i]);
158158
}
159159
}
160-
// TODO?
160+
// TODO what to do for transforms?
161161
} else {
162162
ax = axes.getFromTrace(gd, trace, d2cTarget);
163163
}

src/traces/bar/cross_trace_calc.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,8 @@ function initBase(gd, pa, sa, calcTraces) {
126126
// time. But included here for completeness.
127127
var scalendar = trace.orientation === 'h' ? trace.xcalendar : trace.ycalendar;
128128

129+
// TODO skip for multicategory size axis?
130+
129131
if(isArrayOrTypedArray(base)) {
130132
for(j = 0; j < Math.min(base.length, cd.length); j++) {
131133
b = sa.d2c(base[j], 0, scalendar);

src/traces/box/calc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ function getPos(trace, posLetter, posAxis, val, num) {
178178
pos0 = num;
179179
}
180180

181+
// TODO what to do on multicategory posAxis?
181182
var pos0c = posAxis.d2c(pos0, 0, trace[posLetter + 'calendar']);
182183
return val.map(function() { return pos0c; });
183184
}

src/traces/heatmap/convert_column_xyz.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ module.exports = function convertColumnData(trace, ax1, ax2, var1Name, var2Name,
2323

2424
var i, j, arrayVar, newArray, arrayVarName;
2525

26+
// TODO use makeCalcdata to make this work for multicategory?
2627
for(i = 0; i < colLen; i++) {
2728
col1[i] = ax1.d2c(col1[i], 0, col1Calendar);
2829
col2[i] = ax2.d2c(col2[i], 0, col2Calendar);

src/traces/heatmap/make_bound_array.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ module.exports = function makeBoundArray(trace, arrayIn, v0In, dvIn, numbricks,
7171
else if(isArrayOrTypedArray(arrayIn) && arrayIn.length === 1) v0 = arrayIn[0];
7272
else if(v0In === undefined) v0 = 0;
7373
else v0 = ax.d2c(v0In, 0, calendar);
74+
// TODO what to do for multicategory?
7475

7576
for(i = (isContour || isGL2D) ? 0 : -0.5; i < numbricks; i++) {
7677
arrayOut.push(v0 + dv * i);

src/traces/violin/calc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ function calcSpan(trace, cdi, valAxis, bandwidth) {
123123

124124
function calcSpanItem(index) {
125125
var s = spanIn[index];
126+
// TODO skip on multicategory val axis?
126127
var sc = valAxis.d2c(s, 0, trace[cdi.valLetter + 'calendar']);
127128
return sc === BADNUM ? spanLoose[index] : sc;
128129
}

0 commit comments

Comments
 (0)