add responsive feature to trend chart