In case this doesn’t suit your requirement please let us know where do you exactly plan to align the indexLabel(center of which element). A pictorial representation would be helpful.
Actually, I’d like the indexLabel to be placed outside the bar, and vertically aligned in the middle. I couldn’t place them outside using your example. Is it possible?
We have just released CanvasJS Chart v3.2.5 with a bug fix related to the indexLabel positioning. Please refer to the release blog for more information. Do download the latest version from our download page and let us know your feedback.