Open dy opened 5 years ago
the main nanohtml module is written as a template tag so it expects an array in the first parameter.
For raw HTML, the raw()
function is a more appropriate option:
var raw = require('nanohtml/raw')
var domElement = raw(plot.render('html'))
Trying to render @stdlib/plot with
nanohtml
getting
The HTML generated by
plot
is