Hey there!
I am uploading different economics indicators to Kibana. However, I am having troubles with the definition of the values of the ramp.
As you can see I have negative values in some countries. I have to change the scale to get a better representation so I was trying to do it like this.
And it seems like I can not use negative values there.
Is there anything I am doing wrong?
Thanks in advance!!!
jsanz
(Jorge Sanz)
January 30, 2025, 4:19pm
2
There's some weird behaviour validating the category values. I could add for example 2.95
and then remove 3.0
. Quite annoying. I'll open an issue about this and add it here.
Sorry for the inconvenience.
jsanz
(Jorge Sanz)
January 30, 2025, 4:34pm
3
Issue created, please feel free to subscribe or chime in with any further details you may want to provide.
opened 04:34PM - 30 Jan 25 UTC
bug
Team:Presentation
Feature:Maps
> [!note]
> Reported at this [discuss post](https://discuss.elastic.co/t/problem… -creating-a-custom-color-ramp-for-a-layer/373890).
**Kibana version:**
8.17
**Elasticsearch version:**
8.17
**Server OS version:**
Cloud
**Browser version:**
Firefox 134.0.2 (64-bit)
**Browser OS version:**
Ubuntu 20.04
**Original install method (e.g. download page, yum, from source, etc.):**
Cloud
**Describe the bug:**
Can't set up a negative value in a custom ramp in the Maps app
**Steps to reproduce:**
1. Install the Kibana Sample Data eCommerce dataset
1. Create a new map
2. Create a documents layer with the Kibana Sample Data eCommerce
3. Symbolize the markers by the `day_of_week_i` field for example
4. Change to a custom color ramp
5. Try to render with a ramp with `-3, -2, -1, 0, 1, 2`
6. The first step (`-3`) does not validate
Weirdly, this works:
1. adding a new step below the invalid `-3` that will take `-2.5`
2. removing the invalid `-3`
3. editing `-2.5` to something like `-2.99`

More weirdly, when running from `main` the previous workflow does not work
As soon as moving to -3 or greater, the input is always invalid

**Expected behavior:**
`-3` should be a valid value.
**Errors in browser console (if relevant):**
Nothing