嵌入式分析 SDK API
    正在准备搜索索引...

    函数 StaticQuestion

    • 没有下钻功能的问答组件。

      参数

      • __namedParameters: StaticQuestionProps
        • 可选className?: string

          要添加到根元素的自定义类名。

        • 可选height?: Height<string | number>

          一个数字或字符串,指定CSS大小值,用于指定组件的高度

        • 可选initialSqlParameters?: SqlParameterValues

          SQL参数的初始值。

        • questionId: null | SdkQuestionId
        • 可选style?: CSSProperties

          要添加到根元素的自定义样式对象。

        • 可选title?: SdkQuestionTitleProps

          确定是否显示问题标题,并允许显示自定义标题而不是默认问题标题。默认显示。仅适用于使用默认布局的交互式问题。

        • 可选width?: Width<string | number>

          一个数字或字符串,指定CSS大小值,用于指定组件的宽度

        • 可选withChartTypeSelector?: boolean

          确定是否显示图表类型选择器和相应的设置按钮。仅在使用默认布局时相关。

        • 可选withDownloads?: boolean

          启用在交互式问题中下载结果的功能。

      返回 null | Element

    索引

    InteractiveQuestion

    Breakout: () => null | Element

    类型声明

      • (): null | Element
      • 函数

        用于管理数据分组(拆分)的一组徽章。使用问答上下文实现拆分功能。

        返回 null | Element

    BreakoutDropdown: (
        props: InteractiveQuestionBreakoutDropdownProps,
    ) => null | Element

    类型声明

    ChartTypeDropdown: (props: MenuProps) => Element

    类型声明

      • (props: MenuProps): Element
      • 函数

        用于选择可视化类型(条形图、折线图、表格等)的下拉菜单。自动更新以显示当前数据的推荐可视化类型。

        参数

        返回 Element

    ChartTypeSelector: (props: StackProps) => Element

    类型声明

    DownloadWidget: (props: StackProps) => null | Element

    类型声明

      • (props: StackProps): null | Element
      • 函数

        提供了一个 UI 小部件,用于下载不同格式的数据(根据可视化类型,可以是CSVXLSXJSONPNG)。

        参数

        返回 null | Element

    DownloadWidgetDropdown: (props: PopoverProps) => Element

    类型声明

    类型声明

    FilterDropdown: (
        props: InteractiveQuestionFilterDropdownProps,
    ) => null | Element

    类型声明

    QuestionSettings: (props: StackProps) => null | Element

    类型声明

      • (props: StackProps): null | Element
      • 函数

        用于配置可视化选项(如轴、颜色和格式)的设置面板。使用问答上下文进行设置。

        参数

        返回 null | Element

    QuestionSettingsDropdown: (
        props?: InteractiveQuestionQuestionSettingsDropdownProps,
    ) => Element

    类型声明

    QuestionVisualization: (
        props: { className?: string; style?: CSSProperties } & {
            height?: Height<string | number>;
            width?: Width<string | number>;
        } & {},
    ) => Element

    类型声明

      • (
            props: { className?: string; style?: CSSProperties } & {
                height?: Height<string | number>;
                width?: Width<string | number>;
            } & {},
        ): Element
      • 函数

        主要的可视化组件,将问题结果渲染为图表、表格或其他可视化类型。

        参数

        • props: { className?: string; style?: CSSProperties } & {
              height?: Height<string | number>;
              width?: Width<string | number>;
          } & {}
          • 可选className?: string

            要添加到根元素的自定义类名。

          • 可选style?: CSSProperties

            要添加到根元素的自定义样式对象。

          • 可选height?: Height<string | number>

            一个数字或字符串,指定CSS大小值,用于指定组件的高度

          • 可选width?: Width<string | number>

            一个数字或字符串,指定CSS大小值,用于指定组件的宽度

          返回 Element

      ResetButton: (props?: ButtonProps) => null | Element

      类型声明

      Summarize: () => Element

      类型声明

        • (): Element
        • 函数

          用于添加和管理数据摘要(如计数、总和、平均值)的界面。显示为一组徽章。使用问答上下文实现摘要功能。

          返回 Element

      SummarizeDropdown: (props: InteractiveQuestionSummarizeDropdownProps) => Element

      类型声明

      Title: (
          props: { className?: string; style?: CSSProperties },
      ) => undefined | Element

      类型声明

        • (props: { className?: string; style?: CSSProperties }): undefined | Element
        • 函数

          根据问题的状态显示标题。显示:

          • 如果问题已保存,则显示其显示名称
          • 自发问题的自动生成描述(非原生查询)

          参数

          • props: { className?: string; style?: CSSProperties }
            • 可选className?: string

              要添加到根元素的自定义类名。

            • 可选style?: CSSProperties

              要添加到根元素的自定义样式对象。

          返回 undefined | Element

      © . This site is unofficial and not affiliated with Metabase, Inc.