fixed error on chart

modified query added order by asofdate