diff --git a/modules/widgets/images/advanced-settings-button.png b/modules/widgets/images/advanced-settings-button.png new file mode 100644 index 0000000..02586d8 Binary files /dev/null and b/modules/widgets/images/advanced-settings-button.png differ diff --git a/modules/widgets/images/markdown-toolbar.png b/modules/widgets/images/markdown-toolbar.png new file mode 100644 index 0000000..deb6055 Binary files /dev/null and b/modules/widgets/images/markdown-toolbar.png differ diff --git a/modules/widgets/images/markdown-variable.png b/modules/widgets/images/markdown-variable.png new file mode 100644 index 0000000..d39afb7 Binary files /dev/null and b/modules/widgets/images/markdown-variable.png differ diff --git a/modules/widgets/images/widget-query-setting.png b/modules/widgets/images/widget-query-setting.png new file mode 100644 index 0000000..09aba9d Binary files /dev/null and b/modules/widgets/images/widget-query-setting.png differ diff --git a/modules/widgets/nav.adoc b/modules/widgets/nav.adoc index 9da966a..3ac5f08 100644 --- a/modules/widgets/nav.adoc +++ b/modules/widgets/nav.adoc @@ -10,5 +10,6 @@ ** xref:sankey.adoc[Sankey] ** xref:scatter-plot-widget.adoc[Scatter Chart] ** xref:inputs.adoc[Inputs] +* xref:patternsearch.adoc[Pattern Search] * xref:actions.adoc[] * xref:conditional-styling.adoc[] \ No newline at end of file diff --git a/modules/widgets/pages/graph-widget.adoc b/modules/widgets/pages/graph-widget.adoc index dbe2775..2dc350f 100644 --- a/modules/widgets/pages/graph-widget.adoc +++ b/modules/widgets/pages/graph-widget.adoc @@ -58,37 +58,6 @@ Double-click to expand them and reveal the full set of vertices. The Undo/Redo buttons are in the top right of the graph window. All history is recorded since opening the graph widget. -== Patterns and queries - -The search bar at the top allows you to show graph results from no-code pattern searches or from interpreted GSQL queries. - -=== Pattern search - -In this example, we use a sample graph called `social` from the GSQL 101 TigerGraph Cloud Starter Kit. -Click on the search bar and select different types of vertices or edges to see patterns. - -image::graph-pattern-social.png[] - -If your vertices and edges have several attributes, you can add a filter to limit the results. -This is equivalent to adding a `WHERE` clause in GSQL. - -In this example, we added filters after both `person` vertex options in the pattern. -This allows us to show only friendships between people who are both over 24 years old. - -Creating a zero-code graph pattern search like this actually creates a GSQL query behind the scenes. -Click the gear icon the right of the search bar and choose btn:[Copy generated query to clipboard], then paste it elsewhere to see how it was done. - -=== GSQL query - -If you would rather write your own GSQL query rather than searching for a pattern, click the magnifying glass icon to the left of the search bar to switch to the GSQL Query input option. - -From there, you can write a GSQL query and view the results visualized in the Graph View. -Try pasting in the generated GSQL query from your pattern view. -You should see exactly the same results. - -Try following along with the queries in xref:gsql-ref:tutorials:gsql-101/index.adoc[] using the same small friendship graph. -Remember that Insights only works with GSQL queries in xref:gsql-ref:appendix:interpreted-gsql-limitations.adoc[Interpreted mode.] - == Pathfinding TigerGraph Insights includes a simple way to run pathfinding detection algorithms without writing a single query. diff --git a/modules/widgets/pages/markdown-widget.adoc b/modules/widgets/pages/markdown-widget.adoc index 18e3f49..f992570 100644 --- a/modules/widgets/pages/markdown-widget.adoc +++ b/modules/widgets/pages/markdown-widget.adoc @@ -55,6 +55,18 @@ Users can also use Markdown to add HTML. .Adding HTML image::markdown5.png[] +=== Dynamic Content + +Markdown content can incorporate variables stored in the current page. For creating a variable, please refer to the xref:inputs.adoc[Inputs Widget]. + +* Hover over the `var` menu item in the toolbar of the Markdown widget to display the currently available variables. + +image::markdown-toolbar.png[] + +* Type `$(variables.)` in the Markdown content field on the left, and you will see the evaluated result on the right. + +image::markdown-variable.png[] + == HTML Restrictions The `