[Chartjs]-JavaScript critical error…Syntax Error (MVC 5) when passing array to Charts.js

0đź‘Ť

Answered – see edit (do i get points for answering my own question?)

Wrapped those two trouble spots like this

@Html.Raw(Json.Encode(datapoints))

and it started working perfectly. I’ll leave this up for others to find.

Leave a comment