Do not render graph when width is zero, avoids plot errors