Restore in a chart a previosly stored selection

I’m using Ploly.js to create a speed graph using a bar chart for each value and using a timeline as x axis. Users can select a time range which will be store in a database. There’s some way to restore a selection passing the stored range to some method or configuration settings ? I’ve long searched inside documentation and forum without any success despite I think this should be dead simple.

Thank for any help.