I have an aurelia (similar to react) webpage where I’m inserting my data with this code:
let target = document.getElementById('timelapse').contentDocument;
const runtime = new Runtime();
runtime.module(notebook, name => {
if (name == 'chart')
return new Inspector(target.body);
});
This works great, but the data is the original since I havent changed anything. How can I add my own array to my notebook?
let target = document.getElementById('timelapse').contentDocument;
const runtime = new Runtime();
const module = runtime.module(notebook, name => {
if (name == 'chart')
return new Inspector(target.body);
});
module.redefine('data', [... data goes here ...]);
One more question still (on another matter). My font seems to be lost from my original notebook. I get this look in my site:
Bold is lost, also the number indicating current year is very small (not visible above). Why is this?