SetLabelModeToLabelIds get all "zero values"

I was trying to show the label contour id using vtkLabeledDataMapper. when i set the mapper label mode to label id using “SetLabelModeToLabelIds”. I got all ids labeled “zero”. How can I solve this?