Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/plots/plots.js
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,7 @@ function emptySubplotLists() {
*/
function getFormatObj(gd, formatKeys) {
var locale = gd._context.locale;
if(!locale) locale === 'en-US';
if(!locale) locale = 'en-US';

var formatDone = false;
var formatObj = {};
Expand Down
5 changes: 2 additions & 3 deletions src/traces/histogram/cross_trace_defaults.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,9 @@ module.exports = function crossTraceDefaults(fullData, fullLayout) {
}

var binGroupFound = false;
for(i = 0; i < traces.length; i++) {
traceOut = traces[i];
if(traces.length) {
traceOut = traces[0];
binGroupFound = coerce('bingroup');
break;
}

groupName = binGroupFound || groupName;
Expand Down