From 41e471708ebdf1ec560ba096d6d4ae6a2647f6be Mon Sep 17 00:00:00 2001 From: Thad Guidry Date: Sat, 23 Oct 2021 00:34:52 -0500 Subject: [PATCH] Add mention of adding Row numbers into column (#4062) * Add mention of adding Row numbers into column * move row.index note to Facets * remove unneeded sentence * mention customizing facets in Numeric facets * update yarn.lock to master branch * remove yarn.lock changes from PR * remove yarn.lock from PR * try again to revert to origin * Restore yarn.lock Co-authored-by: Antonin Delpeuch --- docs/docs/manual/facets.md | 4 ++++ docs/versioned_docs/version-3.4/manual/expressions.md | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/docs/manual/facets.md b/docs/docs/manual/facets.md index b63df21e8..06e54b751 100644 --- a/docs/docs/manual/facets.md +++ b/docs/docs/manual/facets.md @@ -100,6 +100,10 @@ You will be offered the option to include blank, non-numeric, and error values i You can create a text facet on numeric data, which will treat each entry as a string. This can be useful if you wish, for example, to manually include facets instead of selecting a range, or sort by count, or copy that count. ::: +:::info Faceting customization +As mentioned in the overview, facets can be modified or customized by GREL [expressions](expressions) in many ways. For example, to facet by clusters of [row](expressions#variables) numbers with `row.index/100` or better visualizing numbers greater than 1000 with `max(row.index, 1000)`. +::: + ## Timeline facet {#timeline-facet} ![A screenshot of an example timeline facet.](/img/timelinefacet.png) diff --git a/docs/versioned_docs/version-3.4/manual/expressions.md b/docs/versioned_docs/version-3.4/manual/expressions.md index 137d65755..3408fbf66 100644 --- a/docs/versioned_docs/version-3.4/manual/expressions.md +++ b/docs/versioned_docs/version-3.4/manual/expressions.md @@ -205,4 +205,4 @@ A `row.record` object encapsulates one or more rows that are grouped together, w | `row.record.toRowIndex` | The row index of the last row in the record + 1 (i.e. the next record) | | `row.record.rowCount` | A count of the number of rows in the record | -For example, you can facet by number of rows in each record by creating a Custom Numeric Facet (or a Custom Text Facet) and entering `row.record.rowCount`. \ No newline at end of file +For example, you can facet by number of rows in each record by creating a Custom Numeric Facet (or a Custom Text Facet) and entering `row.record.rowCount`.