Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
div.innerHTML = `<h2>Community Visualization Codelab</h2>
This is the starter template for the <code>dscc-gen</code> codelab.
<p>
There are currently ${data.tables.DEFAULT.length} rows in the data.
</p>
`;
document.body.appendChild(div);
console.log(data);
};
// renders locally
if (LOCAL) {
drawViz(local.message);
} else {
dscc.subscribeToData(drawViz, {transform: dscc.objectTransform});
}
const local = require('./localMessage.js');
// change this to 'true' for local development
// change this to 'false' before deploying
export const LOCAL = true;
// write viz code here
const drawViz = (data) => {
viz.firstViz(data);
};
// renders locally
if (LOCAL) {
drawViz(local.message);
} else {
dscc.subscribeToData(drawViz, {transform: dscc.objectTransform});
}