using bar chart in place of pagination control