Updating data live and custom x-axis

Hey everyone,
I am new to Plotly and I am using it for a computer science competition. I have two questions about how I can further enhance my project. Firstly, is it possible to have the graph automatically refresh every time new data is sent? Data is sent every few seconds and I would like the line graph to “move” each time new data is sent. Secondly, is it possible to have custom labels for the x-axis on a line graph as opposed to numbers?