Live graph with constantly updating the X axis

Hello,
I am creating a complicated live graph with one trace and I would like to allow the user to set the value for interval of the X axis labels.
For example let’s say that the interval is 5 but the values are “coming” every 1 second. So for the first 4 seconds there is nothing displayed on the X axis and after fifth second, one label will be displayed with “5” in it. After next 5 seconds, there will be “10” displayed, then “15” etc. until the width of the screen is reached. When that happens I would like to recalculate the X axis labels by 5. So instead of having: 0, 5, 10, 15, 20, 25; I would like to have 0, 10, 20, 30, 40, 50; then again after some time: 0, 30, 60, 120, 150. As an addition I would like to display dots on the trace for every number that is coming (so every seconds). As I saw in the demos, there might be a problem with this, because the data pairs must be equal:
valid: [0,1], [1,2], [2,3]
invalid: [0,1],[2],[3,3],[4]

Is this possible to achieve with the Plotly graphs?
thank you