Fix chart rendering