content/guides/08.insights/2.panels.md
Panels are the building-blocks you can add onto insights dashboards to create, save and display data analytics.
All panel types let you set custom text to provide quick and clear context about what a panel represents. Panel header options are exactly the same for all four panel types. Headers are also totally optional and can be hidden.
This panel allows you to label a group of other panels. Labels do not provide analytics. Labels essentially help visually group the other panels and give context to your dashboard.
List panels display some number of items from a collection. These items displayed can be filtered by other criteria as well.
Metrics panels allow you to aggregate all items in a field down to a single value.
Aggregate functions take a list of values and returns one single value.
::callout{icon="material-symbols:info-outline"} First, Last, Minimum and Maximum First, last, minimum and maximum are not aggregates in the purely mathematical sense of the word. However, they are placed in this panel option because they return one single item. ::
::callout{icon="material-symbols:info-outline"}
Why are some Fields grayed out?
Certain fields cannot be used with certain aggregate functions. For example, you cannot use the average function on
fields that store text, because text cannot be averaged. When there is a conflict between panel options, fields will be
grayed out and unselectable in the field dropdown list.
::
>, >=, <, <=, ==, or != to some
defined value.The time series panel allows you to build graphs and see how data changes over time.
::callout{icon="material-symbols:warning-rounded" color="warning"} Time-oriented metrics only In order to use this panel, your collection will need a datetime field. ::
::callout{icon="material-symbols:info-outline"}
Custom Date Range
Note that Past is not prefixed to a custom range as it is on the default ranges. When selecting "Other",
type in 3 years, 1 month, 2 weeks, 5 days, etc.
::
This panel allows you to create a variable which is globally accessible across other panels. You can use this to do things like create a string or number to prefix other insights panel titles or pass it as a value into a filter to query results.
To assign a global variable, wrap the variable key in double-moustache syntax to access and assign it throughout other Insights Panels:
{{ your_variable_key }}
You will notice that the global variable panel is an interface in the Dashboard, allowing you to modify the value of this variable. If you change its value, all panels referencing the variable will update automatically.
::callout{icon="material-symbols:warning-rounded" color="warning"} Must be Valid Data Type Your variable's data type will need to be a valid match to wherever you are using it. For example, do not apply a string or JSON variable in a place that requires datetime data. ::
This panel allows you to create a variable which is globally accessible across other panels. You can use this to do things like select single or multiple items and pass their IDs as a value into a filter to query results.
To assign a global relational variable, wrap the variable key in double-moustache syntax to access and assign it throughout other insights panels:
{{ your_variable_key }}
You will notice that the global relational variable panel is an interface in the Dashboard, allowing you to modify the value of this variable. If you change its value, all panels referencing the variable will update automatically.
::callout{icon="material-symbols:info-outline"}
If you have multiple global relational variables in your dashboard and want to include them in a filter, use the 'one of' comparisons. For example, if you have two global variables A and B referring to post IDs, you can use filter Name is one of {{A}}, {{B}}.
::
::callout{icon="material-symbols:warning-rounded" color="warning"} Must be Valid Data Type Your variable's data type will need to be a valid match to wherever you are using it. For example, do not apply a string or JSON variable in a place that requires datetime data. ::
The bar chart panel allows you to build vertical and horizontal bar charts from data held in collections.
>, >=, <, <=, ==, or != to some defined
value.The line chart panel allows you to build line charts from data held in collections, and are often used for time-series data.
>, >=, <, <=, ==, or != to some defined
value.The meter panel takes a maximum value and allows you to show a completion percentage given a second value.
>, >=, <, <=, ==, or != to some defined
value.The pie and donut charts allow you to create segmented charts based on your data.
>, >=, <, <=, ==, or != to some defined
value.