I want to get xAxis from database which is result of distinct query so my chart can display data dynamically. for static mpchart i have no problem with that. I called this function in onCreate. this line which i to make dynamic. so far i’ve tried some experiment from what i found in google. this one is closer. Log.d display