added inference button for barcharts