加入新推出的
Discord 社区,展开实时讨论,获得同行支持,并直接与 Meridian 团队互动!
meridian.analysis.formatter.create_card_html
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
创建卡片的 HTML 代码段,其中包含指定卡片和图表规范。
meridian.analysis.formatter.create_card_html(
template_env: jinja2.Environment,
card_spec: meridian.analysis.formatter.CardSpec
,
insights: str,
chart_specs: (Sequence[ChartSpec | TableSpec] | None) = None,
stats_specs: (Sequence[StatsSpec] | None) = None
) -> str
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-02-16。
[null,null,["最后更新时间 (UTC):2025-02-16。"],[],["The `create_card_html` function generates an HTML snippet for a card. It requires a Jinja2 template environment, a `CardSpec`, and insights (string). It optionally takes a sequence of `ChartSpec` or `TableSpec` objects, and a sequence of `StatsSpec` objects. The function then combines this data to produce the HTML output, representing the structured card with associated chart, table, and stat data.\n"],null,[]]