Kibana: Timelion color function with gradiant broken on version 7.3

Created on 16 Aug 2019  路  7Comments  路  Source: elastic/kibana

Kibana version:
7.3
Elasticsearch version:
7.3
Server OS version:
Centos &.6
Browser version:
Any
Browser OS version:

Original install method (e.g. download page, yum, from source, etc.):
download page
Describe the bug:
Gradiant color() function does not work anymore on version 7.3
gradiant does not work , color function is ignored and return
Timelion request error
Error: in cell #1: tinycolor is not a function

Steps to reproduce:
1.Create a timelion expression with split and a color with gradiant

expression(gradiant of color fails)
$var='EUR\/CHF',.es(index=euronexttape-trade,timefield=time,q=sym.keyword:EUR\/CHF,metric=sum:volume,split=volume:5).yaxis(2).lines(fill=7,stack=1,width=1,steps=1).fit(carry).label("$1", "^. volume:(.) > .").color(#ad8724:#30abb3)

Expected behavior:
Above function was working on version 7.1

Screenshots (if relevant):
7.3

7.1

Timelion KibanaApp bug good first issue triage_needed

Most helpful comment

Download tinycolor.js from https://github.com/bgrins/TinyColor/tree/1.4.1 into "YOUR_KIBANA_DIR/node_modules/tinycolor2/" directory. Restart kibana.

Inside official rpm archive(kibana-7.5.1-x86_64.rpm) tinycolor.js file is empty:
-rw-r--r-- 1 root root 563 Dec 17 01:00 /usr/share/kibana/node_modules/tinycolor2/package.json -rw-rw-r-- 1 root root 0 Dec 17 01:00 /usr/share/kibana/node_modules/tinycolor2/tinycolor.js

All 7 comments

Pinging @elastic/kibana-app

confirmed this myself with 7.4.

Timelion request error
[timelion_vis] > Error: in cell #1: tinycolor is not a function

Confirmed, still on 7.4.2

The good news is, it will be fixed in our upcoming 7.5 release (Just tested it)

Download tinycolor.js from https://github.com/bgrins/TinyColor/tree/1.4.1 into "YOUR_KIBANA_DIR/node_modules/tinycolor2/" directory. Restart kibana.

Inside official rpm archive(kibana-7.5.1-x86_64.rpm) tinycolor.js file is empty:
-rw-r--r-- 1 root root 563 Dec 17 01:00 /usr/share/kibana/node_modules/tinycolor2/package.json -rw-rw-r-- 1 root root 0 Dec 17 01:00 /usr/share/kibana/node_modules/tinycolor2/tinycolor.js

Is this happening again in 7.7.1? Went from 7.6.1 to 7.7.1 this weekend and suddenly this is back again. Not sure if it's the same issue or a new one. If required I'll open a new issue.

[timelion_vis] > Timelion request error: undefined Error: in cell #1: tinycolor is not a function

This works:

.es(index=logstash-*, split=frontend.keyword:5)

This fails:

.es(index=logstash-*,
  split=frontend.keyword:5
  ).color(#20B2AA:#87CEFA:#D2B48C:#9ACD32:#BDB76B)

Re my last:
This issue is _not_ present in 7.8.0 as far as I can see.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

celesteking picture celesteking  路  3Comments

tbragin picture tbragin  路  3Comments

cafuego picture cafuego  路  3Comments

timroes picture timroes  路  3Comments

bradvido picture bradvido  路  3Comments