Can't set colours on date range visulation when using now in a date range aggregation #13682
Labels
bug
Fixes for quality problems that affect the customer experience
Feature:Visualizations
Generic visualization features (in case no more specific feature label is available)
impact:low
Addressing this issue will have a low level of impact on the quality/strength of our product.
Team:Visualizations
Visualization editors, elastic-charts and infrastructure
Kibana version: 5.5.2
Elasticsearch version: 5.5.2
Server OS version: Ubuntu 16
Original install method (e.g. download page, yum, from source, etc.): Debian install
Description of the problem including expected versus actual behavior:
If you set custom colours on a graph which are using an aggregation from a date range with
now
in the date format, then the colours will not stay after refreshing. I would except to be able to keep the colours for the defined series. As far as I can tell this effects any graph type using now in a date range aggregation.After reading #9219 and #12914 what I believe to be happening is this:
now-1w
tonow
will be rendered dynamically and will become a label likeAugust 24, 12:00:00.00 to August 17 12:00:00.00
"uiStateJSON": "{\"vis\":{\"colors\"{\"August 24, 12:00:00.00 to August 17 12:00:00.00\":\"#BF1CB00\"}}}"
now
now refers to a time in the future and the previously saved label will no longer match.Steps to reproduce:
now-1w
and To =now
The text was updated successfully, but these errors were encountered: