0👍
✅
You can pass data to JavaScript within a template using the jinja filter tojson
.
var lineData = {
labels : {{ labels | tojson }},
// ...
}