Fixed d3 line chart widget so that gradient code works for area chart.