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.

Category color assignment

See original GitHub issue

@davidmanzanares

While testing the category ramp fix (https://github.com/CartoDB/renderer-prototype/issues/66), I noticed something else that I don’t think is expected behavior.

Using some Airbnb data, there are 3 categories of the attribute room_type: Entire home/apt, Private room, Shared room

Using this syntax:

color: ramp($room_type,vivid)

I’d expect to see the first three colors in the scheme vivid for each of the types: screen shot 2018-02-23 at 10 24 14 am

Instead, what I’m seeing is this where the first color in the scheme is skipped and the third category Shared room being skipped altogether.

screen shot 2018-02-23 at 10 02 04 am

On the other hand, if I define the style with buckets:

color: ramp(buckets($room_type,"Entire home/apt", "Private room", "Shared room"),vivid)

I see the expected result for that syntax which is also what I would expect to see in the first rendering.

screen shot 2018-02-23 at 10 01 14 am

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
makellacommented, Mar 1, 2018

ohhhh ok. I’ll go through all my category map types and check them!

0reactions
makellacommented, Mar 5, 2018

@davidmanzanares opened another issue with some questions (https://github.com/CartoDB/renderer-prototype/issues/129). Can you give me a deeper dive into the linear interpolation between colors? Maybe you have explained it to me before but I am seeing really weird results.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Create and assign color categories - Microsoft Support
To assign a color category to a message from the message list, right-click the message. Select Categorize, then select a category from the...
Read more >
Outlook Categories and Color Categories - Slipstick Systems
You can assign one or more categories to any Microsoft Outlook item and ... This will assign random colors to the categories assigned...
Read more >
Assign Categories to Colors - Coda
This exercise will help you identify a Category for every color. The table below has a row for each of the Google Calendar...
Read more >
How to Add or Edit Categories in Outlook - Lifewire
Assign a color category to an email: Right-click the message in the email list. Select Categorize and make a color selection.
Read more >
Create and Color-Code an Assignment Category
If enabled by your TeacherPlus administrator, you can create new assignment categories and change their color code. This feature provides you the ...
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