is there a way to control the accuracy of a Color scripted field, for example:
i am intersted in showing up to 3 digits after the decimal point.
The script for that Color scripted field is:
doc['latency'].value/1000, where latency field is number.
You can use Math.Round to achieve this, just multiply by 1000, round the result, and then divide by 1000. Since you are already dividing the result by 1000 you can condense this:
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.