How to change column chart color programmatically
Attempt to answer the last question, i.e.:


  Is there any module by which I can sort out my problem?


To create charts in Drupal, consider the comparison of charting modules as a possible place to start from, to find the module that best fits your needs. That comparison does include the modules mentioned here, but quite AbitMORE charting modules ...

Possible alternatives that should solve this specific question, are the Chart module, or the Charts module. I recently created quite a lot of new Chart documentation, and Charts documentation. Though there are other alternatives in that comparison that might be a better fit for this specific case.

The license that comes with the related charting library (engine) in each of these modules, should be considered also. It is one of the (important?) selection criteria for deciding on the module to go for. 'Possible privacy concerns' or 'Yes or no support for saving charts in PDFs' is another typical item to consider.

Be aware: I'm a new (co-) maintainer of both module 'chart' and 'charts' (confusing names, I didn't invent those names), and the author of the comparison.

Ps: the question does not say why it has to be done programmatically. But note that the Charts module ships with out-of-the-box samples which seems to be very close to what you are trying to create. Adapting these samples to exactly fit your needs seems like cloning these samples in a new views display or a new view.