Open GoogleCodeExporter opened 9 years ago
I have Use All things which you have given.which is foll0wing code: function getchartdata(stype) { $("#loading1").show(); $.ajax({ type: "POST", contentType: "application/json; charset=utf-8", data: "{stuid: '<%=_user.UserId.ToString()%>',month:'" + $('#ddlmonth').val() + "',year: '" + $('#ddlyear').val() + "',colid: '<%=_user.CollegeId.ToString()%>',stype:'" + stype + "'}", url: "GetDDLDATA.asmx/StudentChart", dataType: "json", success: function (data) { if (data.d != "") { if (data.d == 'N') { //$("#AttendancePercentages").html(''); //$("#divmsg").show(); // $("#divmsg").html('No Data Found.'); $("#loading1").hide(); $("#AttendancePercentages").html(data.d); $('[data-attc-createChart]').attc(); // new google.visualization.PieChart(document.getElementById('visualization')). //draw(data, { // title: "So, how was your day?", // sliceVisibilityThreshold: 0 //}); } else { $("#loading1").hide(); $("#divmsg").html(''); $("#divmsg").hide(); $("#AttendancePercentages").html(data.d); $('[data-attc-createChart]').attc(); } // $('#AttendancePercentages').CreateChart(); } } }); Cs page if (Convert.ToInt32(ds.Tables[0].Rows[0]["Present"].ToString()) + Convert.ToInt32(ds.Tables[0].Rows[0]["Absent"].ToString()) + Convert.ToInt32(ds.Tables[0].Rows[0]["Leave"].ToString()) > 1) { str.Append(" <thead><tr><th id=\"pieDescription\">Description</th><th id=\"pieValues\">Attendance</th></tr></thead>"); if (ds.Tables[0].Rows.Count > 0) { if (stype == "M") { str.Append("<tbody><tr><td>Present(" + ds.Tables[0].Rows[0]["Present"].ToString() + ")</td><td>" + ds.Tables[0].Rows[0]["Present"].ToString() + "</td></tr>"); str.Append("<tr><td>Absent(" + ds.Tables[0].Rows[0]["Absent"].ToString() + ")</td><td>" + ds.Tables[0].Rows[0]["Absent"].ToString() + "</td></tr>"); // str.Append("<tr><td>Remark</td><td>" + ds.Tables[0].Rows[0]["Remark"].ToString() + "</td></tr>"); str.Append("<tr><td>Leave(" + ds.Tables[0].Rows[0]["Leave"].ToString() + ")</td><td>" + ds.Tables[0].Rows[0]["Leave"].ToString() + "</td></tr></tbody>"); } else { str.Append("<tbody><tr><td width='auto;'>Present(" + ds.Tables[0].Rows[0]["Present"].ToString() + ") All month</td><td>" + ds.Tables[0].Rows[0]["Present"].ToString() + "</td></tr>"); str.Append("<tr><td width='auto;'>Absent(" + ds.Tables[0].Rows[0]["Absent"].ToString() + ") All month</td><td>" + ds.Tables[0].Rows[0]["Absent"].ToString() + "</td></tr>"); // str.Append("<tr><td>Remark</td><td>" + ds.Tables[0].Rows[0]["Remark"].ToString() + "</td></tr>"); str.Append("<tr><td width='auto;'>Leave(" + ds.Tables[0].Rows[0]["Leave"].ToString() + ") All month</td><td>" + ds.Tables[0].Rows[0]["Leave"].ToString() + "</td></tr></tbody>"); } } else { str.Append("<tbody><tr><td>Present</td><td>0</td></tr>"); str.Append("<tr><td>Absent</td><td>0</td></tr>"); // str.Append("<tr><td>Remark</td> <td>0</td></tr>"); str.Append("<tr><td>Leave</td><td>0</td></tr></tbody>"); } But not show Upper table which we chage chart type or edit
Original issue reported on code.google.com by manish.p...@gmail.com on 28 Jan 2014 at 9:19
manish.p...@gmail.com
Original issue reported on code.google.com by
manish.p...@gmail.com
on 28 Jan 2014 at 9:19