Skip to main content
Aug 7, 2019 6:20 AM UTC
Solved

Not able load historical data in Time Series chart

Hi Team,

 

I am creating a Time-Series chart which is getting data from a service that is fetching telemetry & corresponding timestamp from a database every 10 seconds. All the values are Logged & Persistant. My question is that i am not able to show the Timestamp that is coming from the database in the time series chart. Only the current timestamp is being plotted that seems to be coming from Value Stream. Can you please help me solving this issue.

ParasAnswer
Aug 8, 2019 3:35 AM UTC

I did realized that the problem was with the format. I was building a custom extension in which i was updating timestamp value using Datetime primitive. The issue in hand was the type conversion which later I was able to resolve using  DatetimePrimitive.convertFromObject(). Thanks for the help.

3 replies

Aug 7, 2019 2:42 PM UTC

Are you receiving all the data and in the required format if you are executing the service separately? You may also wish to test with TimeSeriesV2 chart that comes with Custom Chart Extension. 

ParasAuthorAnswer
Aug 8, 2019 3:35 AM UTC

I did realized that the problem was with the format. I was building a custom extension in which i was updating timestamp value using Datetime primitive. The issue in hand was the type conversion which later I was able to resolve using  DatetimePrimitive.convertFromObject(). Thanks for the help.

Aug 7, 2019 3:59 PM UTC

Hello,

 

  1. Are you sure that you selected correct "XAxisField" on your widget?
  2. Try to execute your service directly on the Thing in Composer -- do you get the correct values in the column that you selected as "XAxisField" in your mashup?

Regards,
Constantine