跳转至

Visual functions(可视化函数(Visual functions))

Visual functions are reusable blocks of logic built using Quiver’s point-and-click interface. These functions can be used multiple times within the same or other Quiver analyses. Visual functions are published as an independent resource in Foundry and can be shared with other users who can also use them in their own Quiver analyses.

Visual functions allow you to:

  • Build reusable logic using a point-and-click interface, without code,
  • Collaborate with colleagues by building a shared library of reusable functions,
  • Easily update common logic across multiple analyses in one place and reduce the risk of manual errors or mismatching logic,
  • Simplify large analyses and improve loading and navigation performance.

Inputs

A visual function contains zero or more inputs. Inputs are arguments of the function which can be configured by the user when consuming the function. Supported input types are: metrics, object sets, single objects or time series. Note that visualizations (categorical or not) and tables are not supported input types.

Output

A visual function has one output. The output of the function is the result returned by the function. Supported output types are: metrics, object sets, single objects or time series.

Note that visualizations (categorical or not) and tables are not supported output types.

The function card, containing the output of the function, can be used as input to other cards in the Quiver analysis.

Logic

The logic of a Quiver function is all the cards that are contained between the inputs and the output on the analysis graph.

Read more about how to use visual functions.


中文翻译

可视化函数(Visual functions)

可视化函数(Visual functions) 是使用 Quiver 的点击式界面构建的可重用逻辑模块。这些函数可以在同一 Quiver 分析或其他 Quiver 分析中多次使用。可视化函数作为 Foundry 中的独立资源发布,可以与其他用户共享,他们也可以在自己的 Quiver 分析中使用这些函数。

可视化函数允许您:

  • 通过点击式界面构建可重用逻辑,无需编写代码,
  • 通过构建可重用函数的共享库与同事协作,
  • 在单个位置轻松更新跨多个分析的通用逻辑,降低手动错误或逻辑不匹配的风险,
  • 简化大型分析并提升加载和导航性能。

输入(Inputs)

可视化函数包含零个或多个输入。输入是函数的参数,用户在使用函数时可以对其进行配置。支持的输入类型包括:指标(metrics)、对象集(object sets)、单个对象(single objects)或时间序列(time series)。请注意,可视化图表(无论是否分类)和表格(table)不支持作为输入类型。

输出(Output)

可视化函数有一个输出。函数的输出是函数返回的结果。支持的输出类型包括:指标(metrics)、对象集(object sets)、单个对象(single objects)或时间序列(time series)。

请注意,可视化图表(无论是否分类)和表格(table)不支持作为输出类型。

包含函数输出的函数卡片(function card)可以作为 Quiver 分析中其他卡片的输入。

逻辑(Logic)

Quiver 函数的逻辑是指分析图中输入与输出之间的所有卡片。

了解更多关于如何使用可视化函数的信息。