Comments (10)
Is ramp($price, inverse(burg))
fine?
from carto-vl.
yep!
from carto-vl.
inverse() is already there!
from carto-vl.
nice!!
so what category of operator would this be?
I know we had a category of Color Constructors
-- being able to manipulate things like h,s,v
channels... do you think this is part of that?
from carto-vl.
So looking at this closer... do you mean that by default we read in the inverse()
of a sequential scheme?
I ask because that is the default behavior I'm seeing.
For example, using the Airbnb data's price
attribute the higher value listings, by default, are colored with the lightest color in the scheme Emrld
:
color: ramp(quantiles($price,7),Emrld)
: result
with inverse()
:
color: ramp(quantiles($price,7),inverse(Emrld))
: result
Let's discuss this because from a "traditional" standpoint, people will expect the inverse()
result as the default vs. the way we have it now.
from carto-vl.
Sorry for the delay, I forgot about this.
No, I don't think this could be considered part of Color Constructors
. I would say this is part of palettes
, I think it would be good to explain this after explaining how cartocolors can be used with ramps, also near custom palettes (something that hasn't been implemented yet).
About reading in the inverse order, we get the order from cartocolors, but it is certainly possible that that order was meant to be read in the other way.
Does this inversion happen in all cases (all cartocolos, numeric properties, categorical properties...)?
Inverting this is easy, but, if it doesn't need to be inverted in all cases, we would need more details.
from carto-vl.
@davidmanzanares no prob!
Let's talk about this next week... they were flipped in cartocolor.js for Builder (long story that I need to refresh myself on)
from carto-vl.
After looking deeper david thinks this might have to do specifically with quantiles
as linear is giving the expected result:
from carto-vl.
I found the bug, quantiles
assigned incorrectly the last bucket. Should be already fixed on ghpages now.
from carto-vl.
Nice, checked, and looks good to me!
thanks, david!
from carto-vl.
Related Issues (20)
- Histogram expressions value don't work for dates HOT 1
- Cannot blend animation.duration if it's a variable
- Allow animation controls for any animated property
- Allow to assign a new expression to a new viz variable when the layer has been loaded HOT 2
- MVTs with bottom-left corner as the origin of coordinates HOT 1
- GeoJSON source issues with viz updates HOT 2
- some carto expression not working in geojson HOT 2
- CVL 1.4.1 regression :: filtering with list does not work anymore HOT 1
- [WebGL]: An error occurred compiling the shaders: ERROR: Expression too complex. HOT 1
- 'Time' function inside the Viz filter seems broken
- Mobile maps are not able to load the data HOT 17
- Lower minimum MAX_VERTEX_TEXTURE_IMAGE_UNITS requirement HOT 1
- Update MAX_VERTEX_TEXTURE_IMAGE_UNITS parameter at browser support doc HOT 1
- Windshaft-carto-vl docker image is broken HOT 5
- Issue with numeric buckets when defined in descending order
- Blog map issue HOT 1
- Viewport numeric computation are somehow wrong when zoom is < 2
- Typescript support HOT 2
- this._source.requiresNewMetadata is not a function on blendToViz with an MVT Layer HOT 1
- Styling point width by variables renders incorrectly on mobile devices
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from carto-vl.