Hi Soumava -
Tableau Desktop allows you to publish a Tableau Viz directly to Tableau Server. Because of that, I'm not exactly sure what you mean by:
"...trying to automate the process of transferring the chart data to Tableau Server from Tableau Desktop".
There's no need for this. Can you explain a little bit more?
Hope this helps!