Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save alanjones2/0293fa4f73d0e55ba00d10e17bbcccf1 to your computer and use it in GitHub Desktop.
Save alanjones2/0293fa4f73d0e55ba00d10e17bbcccf1 to your computer and use it in GitHub Desktop.
async function callback(selection){
let response = await fetch("/callback?data="+selection);
if (response.ok) {
let result = await response.json();
Plotly.newPlot('chart1', result, {});
} else {
alert(response.status);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment