We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
plotly
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 3c56243 commit f01bab9Copy full SHA for f01bab9
src/plot_api/helpers.js
@@ -283,7 +283,9 @@ exports.cleanData = function(data, existingData) {
283
284
if(!Registry.traceIs(trace, 'pie') && !Registry.traceIs(trace, 'bar')) {
285
if(Array.isArray(trace.textposition)) {
286
- trace.textposition = trace.textposition.map(cleanTextPosition);
+ for(i = 0; i < trace.textposition.length; i++) {
287
+ trace.textposition[i] = cleanTextPosition(trace.textposition[i]);
288
+ }
289
}
290
else if(trace.textposition) {
291
trace.textposition = cleanTextPosition(trace.textposition);
Nice. Can you add a comment at the top of function declaration about replacing array items in place?
1 commit comments
etpinard commentedon Feb 8, 2018
Nice. Can you add a comment at the top of function declaration about replacing array items in place?