add inference for dotchart