Here is thread about how to change x-axis dynamically. Take it as a starting point, try to get some result and if stuck, share simple flow with small sample of your data. (we need to see the structure of data) Then we can deal with specific questions, what is possible and how to get it.