Work on Generating Chart and some php