Forum Replies Created by akdeniz

Viewing 2 posts - 1 through 2 (of 2 total)
  • in 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.

    in reply to: not working in web #22060

    Correction: when I throw it at the server, it gives the error in the network

    Failed to load resource: the server responded with a status of 500 (Internal Server Error)

Viewing 2 posts - 1 through 2 (of 2 total)