We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 343f626 commit 09bb4a3Copy full SHA for 09bb4a3
src/plotly-graph-card.ts
@@ -276,12 +276,16 @@ export class PlotlyGraph extends HTMLElement {
276
let xs: Datum[] = xsIn;
277
let ys = ysIn;
278
if (trace.lambda) {
279
- const r = trace.lambda(ysIn, xsIn, history);
280
- if (Array.isArray(r)) {
281
- ys = r;
282
- } else {
283
- if (r.x) xs = r.x;
284
- if (r.y) ys = r.y;
+ try {
+ const r = trace.lambda(ysIn, xsIn, history);
+ if (Array.isArray(r)) {
+ ys = r;
+ } else {
+ if (r.x) xs = r.x;
285
+ if (r.y) ys = r.y;
286
+ }
287
+ } catch (e){
288
+ console.error(e)
289
}
290
291
return merge(
0 commit comments