Thanks a lot, now the script is working as expected in terms of axis settings.
I think the last step I need is the following:
normally we have the datatable embedded in a JMP report, so adding a new data line on the data the chart is updated automatically with the new value, I noticed that the "last 30 datapoints" is not rolling in the way 1 new value, 1 old value less but day by day the number of plotted point is increasing by 1.
There's something I can do?