0👍
Maybe this can help pass the data from flask to js: How can I pass data from Flask to JavaScript in a template?
Quote:
” You can use {{ variable }} anywhere in your template, not just in the HTML part. So this should work:
<html>
<head>
<script>
var someJavaScriptVar = '{{ geocode[1] }}';
</script>
</head>
<body>
<p>Hello World</p>
<button onclick="alert('Geocode: {{ geocode[0] }} ' + someJavaScriptVar)" />
</body>
</html>
“
- Chartjs-How can I add multiple datasets into my dropdown menu and keep it as dynamic as it is right now?
- Chartjs-Update chartjs chart within random data once per second
Source:stackexchange.com