hii all
i have below json data from web api
- [{"DepartmentName":"HR","Performance":[30,40],"Month":["Jan","feb"]},{"DepartmentName":"Dev","Performance":[60,80],"Month":["Jan","feb"]}]
Each department's paerformance each month as shown in below figure
i am stuck on generating different series
- $(function(){
- $.ajax({
- type: "POST",
- url: "/ChartJS/ThreeChart",
- contentType: "application/json; charset=utf-8",
- dataType: "json",
- success: function (chData) {
- var ctx = document.getElementById('myChart').getContext('2d');
- var myChart = new Chart(ctx, {
- type: 'bar',
- data: [{
- label: "??",
- data: chData[1], ??
- }]
- });
- }
- })
- })

Cory RobertsPosted Dec 11, 2020, 7:05 PM