cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X

Issue with Line Chart Not Plotting Last Data Point

leekhil_kataray
12-Amethyst

Issue with Line Chart Not Plotting Last Data Point

Hi PTC Community,

I'm currently facing an issue with the line chart in ThingWorx. Occasionally, the line chart fails to plot the last data point from the dataset. This happens inconsistently, and I haven't been able to identify a clear pattern or cause.

Here are a few details about the issue:

  • The dataset is correctly populated, and I have verified that the last data point exists.
  • The issue doesn't occur every time but happens sporadically.
  • When I inspect and check the preview in the API response, I can see the last data point is present, but it still doesn't show on the chart.
  • The same data is binded to Grid and chart and i can see the last timestamp is 2024-10-24 22:00:00.000 on grid where as 2024-10-24 19:33:09.444 in linechart.
    Note - i am using ChartType as Step in linechart.
    Additionally, I noticed that when I change the start date from X time to Y time while keeping the end date the same, the graph plots correctly when using Y time as the start date. 

 

  • Screenshot from 2024-11-05 16-46-26.png
6 REPLIES 6

What if you extend your X axis to the right a bit, e.g. add +1 hour to it?

I have tried extending the X-axis by setting the maximum to the last data point plus one hour, but this still does not resolve the issue.

Additionally, I noticed that when I change the start date from X time to Y time while keeping the end date the same, the graph plots correctly when using Y time as the start date.

Then maybe it has something to do with the Y scale? I don't see a point at 19:33:09 either. What if you try limiting the Y max to something like 10 -- do you see all data points now?

Please check the point on the left side on the chart where I have placed the hover. In the tooltip, you can see a point at 19:33:09 with a value of 0.
I have not set any limit to Y axis it has its default value 000.00

I see the tooltip, but not the bar itself. Try to set the limit just to check if the problem is related to Y scaling, and not to the “missing point”.

When you say "The issue doesn't occur every time but happens sporadically", do you mean it happens sporadically with the same dataset or with different datasets? Does resizing have an effect? Also, please always post your TWX version, it can make a difference.

Announcements


Top Tags