Published
Edited
Mar 27, 2020
1 fork
Importers
1 star
Insert cell
md`# error`
Insert cell
function internalError({ target, error }) {
console.error(`INTERNAL ERROR : ${target} : ${error}`);
}
Insert cell
// call this to add a warning icon to a graph and log an error to the console
function error({ target, error }) {
console.error(`ERROR : ${target} : ${error}`);

select(target)
.select('.mg-chart-title')
.append('tspan')
.attr('class', 'fa fa-x fa-exclamation-circle mg-warning')
.attr('dx', '0.3em')
.text('\uf06a');
}
Insert cell
select = require("d3-selection")
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more