Change time graph duration based on context

The reason me asking is that I have an application where I record a certain start/stop time depending on some time series changes and present those as rows in a custom html table.
I would like to make a link of each row to show a time series graph with the duration being those previously recorded start and stop times.
Shouldn’t I be able to do this?