It works with a bar graph but not with a line graph\!