Chart JS displaying data in a wrong manner

Viewed 27

So I am using the chart js library and experiencing issues with the chart. For some of the months I do not have data, this means that the chart is filling out the chart from january to whatever month depending on the data instead of putting in the data at the right month.

An example of the data I have:

{Period: '2021-11-01T00:00:00', AverageConversationEval: 4}

{Period: '2022-03-01T00:00:00', AverageConversationEval: 5}

{Period: '2022-05-01T00:00:00', AverageConversationEval: 3}

{Period: '2022-06-01T00:00:00', AverageConversationEval: 1.5}

{Period: '2022-07-01T00:00:00', AverageConversationEval: 4}

So here it's filling the chart from november till march instead of making empty holes in the graph.

Is there any way to fix this?

0 Answers
Related