Skip to content

Commit

Permalink
Adds canvas clog function (#96418)
Browse files Browse the repository at this point in the history
* Add canvas `clog` function in the doc

* Add basic example to the `clog` canvcas function

* clog canvas function: switch definition/purpose

Co-authored-by: Laurent HUET <[email protected]>
  • Loading branch information
KOTungseth and lhuet authored Apr 7, 2021
1 parent 5de5f23 commit 63a177e
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions docs/canvas/canvas-function-reference.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,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`
Expand Down

0 comments on commit 63a177e

Please sign in to comment.