Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Charts Break when data is not available #2643

Open
bravura-quark opened this issue Feb 29, 2024 · 2 comments
Open

Charts Break when data is not available #2643

bravura-quark opened this issue Feb 29, 2024 · 2 comments
Labels
Assigned to HM Work that is being assisted on by HM bug Something isn't working Triaged When the ticket has been correctly triaged, add this label

Comments

@bravura-quark
Copy link

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

@bravura-quark bravura-quark added the bug Something isn't working label Feb 29, 2024
@corteggiano corteggiano added Triaged When the ticket has been correctly triaged, add this label Assigned to HM Work that is being assisted on by HM labels Mar 4, 2024
@corteggiano
Copy link
Contributor

thank you for your report! we have assigned this bug and are working on a fix

@jmbuss
Copy link
Contributor

jmbuss commented Mar 6, 2024

Hello! Can you help me with reproduction steps, what are the version numbers you are using?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Assigned to HM Work that is being assisted on by HM bug Something isn't working Triaged When the ticket has been correctly triaged, add this label
Projects
None yet
Development

No branches or pull requests

3 participants