button is dragged and dropped in a particular area then it calls the function and creates chart using jchartfx