mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
Add canvas clog
function to the doc (#61759)
* Add canvas `clog` function in the doc * Add basic example to the `clog` canvcas function * clog canvas function: switch definition/purpose
This commit is contained in:
parent
d4abd5a340
commit
39ed36e311
1 changed files with 31 additions and 0 deletions
|
@ -374,6 +374,37 @@ Clears the _context_, and returns `null`.
|
|||
*Returns:* `null`
|
||||
|
||||
|
||||
[float]
|
||||
[[clog_fn]]
|
||||
=== `clog`
|
||||
|
||||
It outputs the _context_ in the console. This function is for debug purpose.
|
||||
|
||||
*Expression syntax*
|
||||
[source,js]
|
||||
----
|
||||
clog
|
||||
----
|
||||
|
||||
*Code example*
|
||||
[source,text]
|
||||
----
|
||||
filters
|
||||
| demodata
|
||||
| clog
|
||||
| filterrows fn={getCell "age" | gt 70}
|
||||
| clog
|
||||
| pointseries x="time" y="mean(price)"
|
||||
| plot defaultStyle={seriesStyle lines=1 fill=1}
|
||||
| render
|
||||
----
|
||||
This prints the `datatable` objects in the browser console before and after the `filterrows` function.
|
||||
|
||||
*Accepts:* `any`
|
||||
|
||||
*Returns:* `any`
|
||||
|
||||
|
||||
[float]
|
||||
[[columns_fn]]
|
||||
=== `columns`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue