State timeline zoom in

Hello,

In the past, there was a discrete plugin in Grafana. But when Grafana switched to React, this plugin became obsolete.

One feature I miss the most is that clicking on a block in the discrete plugin would zoom in on that block. I was thinking of using data links to recreate this functionality. The challenge is that the data I get comes from InfluxDB v1.8 and only contains the columns Time and Value.

Currently, I’m using the following URL for the data link:

/d//?from=${__data.fields[“Time”]}&to=${__data.fields[“Time”]}&${__all_variables}

But with this i always jumps to the first Time (from and to) of the block. I’ve managed to get this far, but I’m not sure how to reference the last time of the block, so “from” is the fisrt Time of the block and “to” is the last Time of the block.

Or is there a better way to do this?

Thanks in advance for your help!

Best regards,
Ward