When we set the dataPoint y as 1000 and 3(lessthan 4 for 1000), the indexLabel for column 1000 is shown but not for 3.
Please see the bellow code snip.
`var chart = new CanvasJS.Chart(“chartContainer”, {
title: {
text: “Understanding Labels”
},
axisY: {
labelFontSize: 20,
labelFontColor: “dimGrey”
},
axisX: {
labelAngle: -30
},
data: [
{
indexLabel:”{y}”,
type: “column”,
indexLabelFontColor: “#5A5757”,
indexLabelPlacement: “outside”,
dataPoints: [
{ y: 1000, label: “Apples” },
{ y: 3, label: “Mangos” },
]
}
]
});`