Popup with dynamic time series chart

Im trying to use a time series chart in a dynamic popup but im having issues with setting up the tag history binding as a dynamic binding.

I have found this :

but im realy not sure how to set it up.

Every thing i try ends up breaking the chart.

Could some one make a step by step guide with pictures ?

I see there is a similar issue, but there are not a guide to set it up, what goes where ?

Where are you getting stuck??

all off it, im not sure where any of it goes, thats why i want a step by step instruction.