How does grafana appends data and plot the graph continuously?

Unable to understand how grafana appends the data to the existing records and plot the graph ?
Can we create a dashboard by adding extra functionality to it?

thanks for the help.