Home forums Using CanvasJS Multiple Data Series – Index Labels for DataPoints Reply To: Multiple Data Series – Index Labels for DataPoints

#4857

Sunil Urs
Keymaster

There are two issues in the code

1. “indexLabelPlacement”: “none”, // It should either be “outside” or “inside”.
2. “indexLabel”: “” // you are explicitly setting indexLabel to empty string. Remove this one too.

Delete all occurrences of above properties. You can define indexLabel at the series level itself as show below.

"data": [                
{
  indexLabel: "{y}",
  yValueFormatString: "#%",
  dataPoints: [.........]
}
]


Sunil