Partial solution to line chart, but sometimes dot displaying is missing