{"record":{"id":"abeae9acd8bd38ca","repo":"plotly/plotly.js","slug":"attempted-to-group-the-bins-of-trace-traceout-ind-abeae9","errorCode":null,"errorMessage":"Attempted to group the bins of trace <traceOut.index> set with a <calendar> calendar with bins <(binOpts.calendar ? 'on a ' + binOpts.calendar + ' calendar' : 'w/o a set calendar')>","messagePattern":"Attempted to group the bins of trace <traceOut\\.index> set with a <calendar> calendar with bins <\\(binOpts\\.calendar \\? 'on a ' \\+ binOpts\\.calendar \\+ ' calendar' : 'w/o a set calendar'\\)>","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/traces/histogram/cross_trace_defaults.js","lineNumber":73,"sourceCode":"        if(binOpts) {\n            if(axType === binOpts.axType && calendar === binOpts.calendar) {\n                needsNewItem = false;\n                binOpts.traces.push(traceOut);\n                binOpts.dirs.push(binDir);\n            } else {\n                groupName = fallbackGroupName;\n\n                if(axType !== binOpts.axType) {\n                    Lib.warn([\n                        'Attempted to group the bins of trace', traceOut.index,\n                        'set on a', 'type:' + axType, 'axis',\n                        'with bins on', 'type:' + binOpts.axType, 'axis.'\n                    ].join(' '));\n                }\n                if(calendar !== binOpts.calendar) {\n                    // prohibit bingroup for traces using different calendar,\n                    // there's probably a way to make this work, but skip for now\n                    Lib.warn([\n                        'Attempted to group the bins of trace', traceOut.index,\n                        'set with a', calendar, 'calendar',\n                        'with bins',\n                        (binOpts.calendar ? 'on a ' + binOpts.calendar + ' calendar' : 'w/o a set calendar')\n                    ].join(' '));\n                }\n            }\n        }\n\n        if(needsNewItem) {\n            allBinOpts[groupName] = {\n                traces: [traceOut],\n                dirs: [binDir],\n                axType: axType,\n                calendar: traceOut[binDir + 'calendar'] || ''\n            };\n        }\n        traceOut['_' + binDir + 'bingroup'] = groupName;","sourceCodeStart":55,"sourceCodeEnd":91,"githubUrl":"https://github.com/plotly/plotly.js/blob/1d090e0b5ffb8d0fdf6e0e4ff51d3f3cf67f1314/src/traces/histogram/cross_trace_defaults.js#L55-L91","documentation":"Error \"Attempted to group the bins of trace <traceOut.index> set with a <calendar> calendar with bins <(binOpts.calendar ? 'on a ' + binOpts.calendar + ' calendar' : 'w/o a set calendar')>\" thrown in plotly/plotly.js.","triggerScenarios":"Thrown at src/traces/histogram/cross_trace_defaults.js:73 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Give all traces in a bingroup the same xcalendar/ycalendar setting (e.g. all 'gregorian' or all 'chinese').","Remove the calendar setting from one trace if the group has no calendar, or add it to all traces.","Remove bingroup if the traces were not meant to share bins.","Check that date-axis traces and their bin group use a consistent calendar."],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"1d090e0b5ffb8d0fdf6e0e4ff51d3f3cf67f1314","analyzedAt":"2026-09-02T22:03:39.906Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-10T02:17:09.455Z"}