trend chart to closure, some tweaks and fixes