Home Forums Chart Support not working in web Reply To: not working in web

#22065

<div class=”col-lg-6 col-md-6 col-sm-12 col-xs-12 masonry-item” style=”padding-top:18px”>
<div class=”card”>
<div class=”card-header”>
<h2>Son Yapılan Anket Rapor</h2>
</div>
<div id=”chartcontainer” style=”height: 300px; width: 100%;”>

</div>
</div>
</div>

———————————————————-
<script>
$(document).ready(function () {
var chart = new CanvasJS.Chart(“chartcontainer”, {
animationEnabled: true,
theme: “light2”,
title: {
},
data: [{
type: “column”,
dataPoints: [
@{

string abc = “”;
foreach (var item in Model.reportModel)
{
abc += ” {y:” + item.sayi + “,label:’Soru : “+(item.soruSirasi+1)+ ” Cevap : ” + item.soruIcerik+”‘},”;
}
}

@Html.Raw(abc)
]
}]
});
chart.render();
});
</script>

——————————–

Local also throws it into the server even though it works the way I want it

An error occurred while processing your request.

Thanks.