Hello
I am developing an academic system and I need a chart with the wrong questions per student subject. I have a list with Themes (which would be the x axis) and qtdErradas (which would be the y axis of the chart). My problem is with this popular chart with a list. I am developing in Asp.NET and the code in the chart is in JS. Below is 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>