From e9fe9587e22b63b1488756e12892fb1edec76e3f Mon Sep 17 00:00:00 2001 From: Laurent HUET Date: Mon, 30 Mar 2020 10:04:58 +0200 Subject: [PATCH 1/3] Add canvas `clog` function in the doc --- docs/canvas/canvas-function-reference.asciidoc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/canvas/canvas-function-reference.asciidoc b/docs/canvas/canvas-function-reference.asciidoc index eaaf68eb06195..ed94253ff3d16 100644 --- a/docs/canvas/canvas-function-reference.asciidoc +++ b/docs/canvas/canvas-function-reference.asciidoc @@ -376,6 +376,17 @@ Clears the _context_, and returns `null`. *Returns:* `null` +[float] +[[clog_fn]] +=== `clog` + +This function is for debug purpose. It outputs the _context_ in the console. + +*Accepts:* `any` + +*Returns:* `any` + + [float] [[columns_fn]] === `columns` From 75f9a5d01ccf4ea7bfdaa9358f6859437a5f5f4a Mon Sep 17 00:00:00 2001 From: Laurent HUET Date: Mon, 30 Mar 2020 15:30:58 +0200 Subject: [PATCH 2/3] Add basic example to the `clog` canvcas function --- .../canvas/canvas-function-reference.asciidoc | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/docs/canvas/canvas-function-reference.asciidoc b/docs/canvas/canvas-function-reference.asciidoc index ed94253ff3d16..8f38b442c0a36 100644 --- a/docs/canvas/canvas-function-reference.asciidoc +++ b/docs/canvas/canvas-function-reference.asciidoc @@ -382,6 +382,26 @@ Clears the _context_, and returns `null`. This function is for debug purpose. It outputs the _context_ in the console. +*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` From 2318a4bb464533f8cc17b66be55ecb0670ed2931 Mon Sep 17 00:00:00 2001 From: Laurent HUET Date: Mon, 30 Mar 2020 15:34:06 +0200 Subject: [PATCH 3/3] clog canvas function: switch definition/purpose --- docs/canvas/canvas-function-reference.asciidoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/canvas/canvas-function-reference.asciidoc b/docs/canvas/canvas-function-reference.asciidoc index 8f38b442c0a36..67210c9d77057 100644 --- a/docs/canvas/canvas-function-reference.asciidoc +++ b/docs/canvas/canvas-function-reference.asciidoc @@ -380,7 +380,7 @@ Clears the _context_, and returns `null`. [[clog_fn]] === `clog` -This function is for debug purpose. It outputs the _context_ in the console. +It outputs the _context_ in the console. This function is for debug purpose. *Expression syntax* [source,js]