Skip to content

Charts Break when data is not available #2643

@bravura-quark

Description

@bravura-quark

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:
image

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

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:

  1. Choose a time range where data is not available from iot-sitewise source
  2. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Assigned to HMWork that is being assisted on by HMTriagedWhen the ticket has been correctly triaged, add this labelbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions