Update ObserverBar.cpp

We have coded the update function for ObserverBar.cpp.
We have copied the code where we create the Bar in the main.cpp (ObserverGraph::ObserverGraph(  ).
We have deleted the commented code because we dont need it anymore (populate function,BarChart::exportChart,BarChart::setOrientation.
Some code is commented maybe we need it later.