0
Hello!
I am developing an academic system and I need a chart with the wrong questions by subject of each student. I have a list with Themes (which would be the x axis) and qtdErradas (which would be the y axis of the graph). My problem is in popular this chart with a list. I am developing in Asp.NET and the code of the chart is in JS. Follow below the graph js.
<script>
window.onload = function () {
// Donut Chart
Morris.Donut({
element: 'morris-donut-chart',
data: [
@foreach (var item in Model)
{
{
label: item.Tema,
value: item.QtdErradas
},
}
],
resize: true
});
};
</script>
Is there a Javascript error in the Browser console? I don’t see any errors in your View.
– Tobias Mesquita