datasweet / kibana-datasweet-formula

This Kibana plugin allows calculated metrics on any standard kibana visualizations.
Apache License 2.0
121 stars 34 forks source link

Problem whit % format #55

Open alberto-guerra-lmes opened 5 years ago

alberto-guerra-lmes commented 5 years ago

Greetings I am trying to calculate a progress or a ratio. I don't know why, but as much as I've tried I can't make a field formatted to % it only shows it from 1 to 0 but it doesn't make the change to % I tried to put the field as a percentage but this damages the metric that becomes 1 and multiplying by 100 does not adjust it either. Here is an example using the example index delivered by kibana kibana_sample_data_ecommerce Kibana 7.1.1 image

export (12).zip

lfroment-datasweet commented 5 years ago

Hi, no easy way here. You can properly render formula results in a table using numeral.js formatting option, but the graph axis deals only with the raw data (so 0.5 vs 50%). You can trick it like this agg1/agg2*100, but you cannot get the axis to show the unit.

image