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.

null values getting classified and symbolized with numeric attributes

See original GitHub issue

Current behavior

Currently, null values are being included in both continuous and classed maps.

In the example dataset, (poverty by census tract in Brooklyn), there are null values in the data that are getting colored as if they have actual numeric values.

After speaking with @elenatorro yesterday, we did some digging and found that if null a value of 0 is returned. In the numeric context, since 0 is actually a value, this isn’t the desired behavior.

Example

In the gif below, you’ll see that I highlight some polygons that are getting colored even though they have null values:

nulls

At the end of the gif, you will see that there are also polygon values of 0.

Sample map here: https://bl.ocks.org/makella/bc8837f53a07ea0b6730ccbd342a6308

Expected behavior

In this context, null could be equivalent to:

  • no value so don’t show
  • or “no data”, which is important to be able to highlight on both the map and legend where appropriate: Screen Shot 2019-05-01 at 10 33 50 AM

To satisfy both, default behavior should be similar to category/symbol/etc. ramps where “other values” are sent to an others “category” and colored with our others gray. Similar to those ramps, the other color should have the option to be overwritten, for example, to not symbolize, a user could set the default other color to something like rgba(0,0,0,0) or modify our default gray to a color that better suits their map.

cc @andy-esch

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:12 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
Jesus89commented, Sep 4, 2020

This is fixed in the new CF version using WebSDK. It will be available on the next 1.1 release.

1reaction
Jesus89commented, Jun 11, 2019

Yes. I think we are all aligned now. We know the possible use cases and we need to discuss more to find the best solution.

However, as Elena said, we could prioritize the rest of the tickets for the release (size legends, helpers, docs), and keep this one for the next iteration 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

Representing NULL data for a numeric field in ArcGIS ...
Now your NULL values will show as symbolised. You can symbolise them however you want here. enter image description here.
Read more >
How to symbolize null values as Unique Value?
I'm using AGP 2.3.2 and the feature class I'm symbolizing has "Test" and <NULL> values for attributes. I set my Primary Symbology as...
Read more >
Data classification methods—ArcGIS Pro | Documentation
Classification methods are used for classifying numerical fields for graduated ... to divide the range of attribute values into equal-sized subranges.
Read more >
How To Handle Missing Values In Machine Learning Data ...
You could just as easily mark them with a specific numerical value. You could also mark values missing between a upper and lower...
Read more >
4.3. Lesson: Classification - QGIS Documentation
Open Layer Properties, go to the Style tab and select Symbol. ... In interval classification, the numbers are on a scale with positive,...
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