need to pass array not object to getXAxis