work on period bar chart