How can we call grafana software from java program and plot data

Dear developers,

I am new to the grafana software, I want to call grafana software from java or c++ program and plot data. Data is there in influxdb. How to do this.

Normal procedure of grafana is to login to grafana server create dashboard and plot data , but what I want is that I should call grafana software from java program and pass configuation file and it shows a plot. You can think that I want to use grafana in similar terms like gnuplot from other program