Home Forums Chart Support Error chart indexLabel Reply To: Error chart indexLabel

#36988

@kurser,

Is it possible to show text near only one whisker and pick near left/right/top/bottom to show?

You can show a specific indexLabel by checking its index parameter within indexLabelFormatter as shown in the code snippet below –

indexLabelFormatter: function(e){
  if(e.index === 0)
    return e.dataSeries.name + " -  " + e.dataPoint.y[1];
  else
    return " ";
}

In your case, you can use indexLabelPlacement to postion the indexLabel to left or right of whisker but positioning to it to top or bottom is not available as of now.

Please take a look at this JSFiddle for a working example with complete code.

Displaying one indexLabel in error chart

Ideally would be awesome if this text can be shown at the tick side (inside bar if it fits, or outside if not).

Can you please brief us more on the above requirement?

___________
Indranil Singh Deo
Team CanvasJS