I have a pie chart in which i am showing some amounts and values but the issue i am facing is that my a specific part is not showing in my chart need assistance for this issue why this is not issue i am fetching all values correctly and i have printed them using console.log all working fine
you can see in the image i am getting amount of 1link but the part related to 1link is not showing
here is the code
////////////////////////maintenance
var graphtotmanamontValue = '<%= graphtotmanamont.Text %>';
var graphtotmanamont1lnkValue = '<%= graphtotmanamont1lnk.Text %>';
var graphtotmanamontkpayValue = '<%= graphtotmanamontkpay.Text %>';
var graphtotmanamontothrValue = '<%= graphtotmanamontothr.Text %>';
var outstndngmanamnt = '<%= lbltotaloutstandingamountman.Text%>';
var splitoutstndngmanamnt = outstndngmanamnt.split(',');
var splittedoutstndngmanamnt = splitoutstndngmanamnt.join('');
////percentage
var totalmainothramountpercentage = (graphtotmanamontothrValue / graphtotmanamontValue * 100).toFixed(2) + "%";
var totalmain1linkamountpercentage = (graphtotmanamont1lnkValue / graphtotmanamontValue * 100).toFixed(2) + "%";
var outstndngmainprcntg = (splittedoutstndngmanamnt / graphtotmanamontValue * 100).toFixed(2) + "%";
var Mainchart = new CanvasJS.Chart("MaintenanceChart", {
animationEnabled: true,
backgroundColor: "transparent",
data: [{
type: "pie",
startAngle: 240,
yValueFormatString: "##0""",
indexLabel: "{label} {y}",
dataPoints: [
{ y: parseFloat(splittedoutstndngmanamnt), label: "O/S ", toolTipContent: "Outstanding Receieved : " + outstndngmainprcntg },
{ y: parseFloat(graphtotmanamontkpayValue), label: " KPay" },
{ y: parseFloat(graphtotmanamontothrValue), label: " Others", toolTipContent: "Others Receieved : " + totalmainothramountpercentage , color:"#FFC0CB" },
{ y: parseFloat(graphtotmanamont1lnkValue), label: " 1LINK", toolTipContent: "1 link Receieved : " + totalmain1linkamountpercentage, color: "orange" }
]
}]
});
Mainchart.render();