reverted code in r2d3 and fixed responsive chart in IE8