adding positive and negative and chart dynamically updating