Creating dynamic graphs

could anybody help me to create a dynamic graph?
I have a frequency distribution table corresponding to which i have to create a histogram. The activity is that the graph shud show the corresponding variations once the frequency interval is changed…

Any help is highly appreciated.