plot_insight_card()

Plots a solid color card with large stylized text and an optional bottom image graphic. Best for hero statistics, key metric callouts, and executive summary highlights.

Quick Example

import clean_charts as cc

cc.plot_insight_card(
    text="Record-breaking $4.2B in Revenue",
    subtext="Driven by a massive 45% surge in Enterprise Cloud subscriptions across the APAC region.",
    image_path="3d.png",
    bg_color="#fff",
    text_color="#000",
)
Insight Card
Example output for Insight Card.
Money PNGs by Vecteezy

Parameters

Parameter Type Default Scope Description
output_pathstr | NoneNoneCommonFile path to save.
widthint | NoneAutoCommonImage width in pixels.
heightint | NoneAutoCommonImage height in pixels.
aspect_ratiostr | NoneNoneCommon"square", "landscape", etc.
titlestr | NoneNoneCommonBold header text.
subtitlestr | NoneNoneCommonSecondary text.
bg_colorstr | None"#f4f3f0"CommonBackground hex color.
scale_textboolTrueCommonScale fonts proportionally.
textstr""UniqueThe main insight or summary text (large, bold).
subtextstr""UniqueSecondary text displayed below the main text.
image_pathstr | NoneNoneUniquePath to a raster image (PNG/JPG) rendered at the bottom of the card.
text_colorstr"#000000"UniqueHex color for the text.

Common Scenarios

Dark Theme Card

cc.plot_insight_card(
    text="Record-breaking $4.2B in Revenue",
    subtext="Driven by a massive 45% surge in Enterprise Cloud subscriptions across the APAC region.",
    image_path="3d.png",
    bg_color="#000",
    text_color="#fff",
)
Insight Card
Example output for Insight Card.
Money PNGs by Vecteezy