-
Notifications
You must be signed in to change notification settings - Fork 64
Description
Describe the bug
I am using Chart component to render my timeseries data.
The source for timeseries data is iot-sitewise.
When I choose a timerange where data is not available for some timeslots, I can see the Chart populated with the data points when available as below:

However, as soon as the chart is rendered, I get the aggregate error as shown below.

I tried setting the aggregationType to 'AVERAGE' and resolution to "0", "1m", "1h" to see if I can resolve this error, but it does not seem to help.
Below is the timeseries data query :
{
assets: [
{
assetId: assetId,
properties: [
{
propertyId: property.id,
refId: property.id,
aggregationType: AggregateType.AVERAGE,
resolution: "0"
},
],
},
]
}
To Reproduce
Steps to reproduce the behavior:
- Choose a time range where data is not available from iot-sitewise source
- See the error in UI.
Expected behavior
Error should not be seen in the UI.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: Windows 10 Pro
- Browser: Edge
- Version: 122.0.2365.59 (Official build) (64-bit)
Additional context
I can see a similar error in the issue: #2605