Join the newly launched
Discord community for real-time discussions, peer support, and direct interaction with the Meridian team!
meridian.analysis.formatter.create_card_html
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Membuat cuplikan HTML kartu yang menyertakan spesifikasi diagram dan kartu tertentu.
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
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2024-11-10 UTC.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Informasi yang saya butuhkan tidak ada","missingTheInformationINeed","thumb-down"],["Terlalu rumit/langkahnya terlalu banyak","tooComplicatedTooManySteps","thumb-down"],["Sudah usang","outOfDate","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Masalah kode / contoh","samplesCodeIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2024-11-10 UTC."],[],["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,[]]