Fix getcharts API method