question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Preview app does not support datasets where min == max

See original GitHub issue

Activating the layer does not work. I get

Error: noUiSlider (12.0.0): 'range' 'min' and 'max' cannot be equal.

in the JS console. Seems like we will have to catch this case…

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9

github_iconTop GitHub Comments

1reaction
mrpgraaecommented, Jan 30, 2020

See this issue https://github.com/leongersen/noUiSlider/issues/676 for the upstream maintainers stance on 1.

0reactions
dionhaefnercommented, Jan 30, 2020

Simplest implementation should be something like

if (metadata.range[0] == metadata.range[1]) {
 singlebandSlider.noUiSlider.updateOptions({ 
     range: { 
         min: metadata.range[0] - 1, 
         max: metadata.range[1] + 1,
     },
     behaviour: "fixed", 
 }); 
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

Previewing tables in a dataset - Amazon QuickSight
You can only preview tables that you have access to in a dataset. If a table doesn't appear in the top half of...
Read more >
Preview User Guide for Mac - Apple Support
Learn how to use Preview on your Mac to work with and change image files and PDF documents.
Read more >
Chapter 9 Uploads and downloads - Mastering Shiny
You can use it to upload data for analysis, or download the results as a dataset or as a report. This chapter shows...
Read more >
Spark SQL, DataFrames and Datasets Guide
DataFrames can be constructed from a wide array of sources such as: structured data files, tables in Hive, external databases, or existing RDDs....
Read more >
Detect data drift (preview) on datasets - Azure - Microsoft Learn
The preview version is provided without a service level agreement, and it's not recommended for production workloads. Certain features might not ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found