At this stage, I didn’t succeed in importing the code (may be because it is was not modularized).
I uploaded the script as an attached document on a notebook, then I tried the following:
t = (await import(await FileAttachment(“jit.js”).url())).SCRIPTS
Here I do have an error which is not quite explicit:
t = TypeError: Cannot set property ‘$jit’ of undefined
Thanks in advanced for the support of the community
I tried creating 2 treemap with 2 canvas, and another visualization. It seems that labels are not applying on all the vis.
My feeling is that there is a mismatch concerning the used canvas. E.g. the tips are not restricted to the canvas of the second treemap, but are also displayed below. It is may be the reason why label are put in a single place. However, it is not easy to identify how the JIT implementation approach fit with the canvas usage approach of Observable within a notebook. It’s only a feeling, and may be not the actual reason for the encountered issue.
JIT remains useable, but with one JIT visualisation per notebook.