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.
Source:stackexchange.com