Created
July 2, 2022 17:05
-
-
Save alanjones2/0293fa4f73d0e55ba00d10e17bbcccf1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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