dynamic labels working properley for charts