Constructs a JavaScript aggregator for the given Druid columns
1 | javascript(fieldNames, fnAggregate, fnCombine, fnReset, name = "javascript")
|
fieldNames |
list of Druid columns fnAggregate depends on |
fnCombine |
JavaScript function combining aggregate values |
fnReset |
JavaScript function returning the initial aggregate value |
fnAggregte |
JavaScript function updating the current aggregate value |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.