Graph by x data points


I’m new to grafana and I need some help about something that I don’t know if it is possible.

I need to make a graph not with a time line but with the last 10 records.

Is this possible?

Can anyone help? Is there any way or workaround?