Skip to content
Discussion options

You must be logged in to vote

OK, solved this tonight.

The issue with the tables all being placed in the same callout was because
let id = (Math.random() + 1).toString(36).substring(14); was always returning an empty string - the result of (Math.random() + 1).toString(36) doesn't produce a string long enough for substring(14) to return anything other than an empty string. Changed it to substring(7) and it correctly returned unique values each time.

I had to make my drawCallout function async so I could await the dv.span call to create the callout, otherwise the first time through it would call dv.api.table before the parent callout element had been created. Here's the final working code:

async function drawCallout(hea…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by rbennett00
Comment options

You must be logged in to vote
1 reply
@rbennett00
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants