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

Discrepancy in lineplot responses with no data #331

Open
jernestmyers opened this issue Nov 14, 2023 · 0 comments
Open

Discrepancy in lineplot responses with no data #331

jernestmyers opened this issue Nov 14, 2023 · 0 comments

Comments

@jernestmyers
Copy link

I've been looking into this issue re: lineplot errors with null values. I notice that at a certain zoom, the response from /standalone-map-xyrelationships/visualizations/lineplot is a 500 w/ error message Requested data stream 'single_tabular_dataset' did not contain any data. The client handles this by displaying a banner w/ the message The visualization cannot be made because the current subset is empty.

But if I zoom out, I instead get sent some unexpected values that break the client:

{
	"lineplot": {
		"data": [
			{
				"seriesX": [],
				"seriesY": [],
				"binSampleSize": [],
				"errorBars": []
			}
		],
		"config": {
			"variables": [{...},{...}],
			"viewport": {
				"xMin": "",
				"xMax": ""
			},
			"binSlider": {
				"min": null,
				"max": null,
				"step": null
			},
			"binSpec": {
				"type": "binWidth",
				"value": null
			}
		}
	}
}

My question: why does the request that returns that latter response not also result in the same 500 as the first request?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant