added shade for D3 and handling for 0 data