HtmlForgeX

API Reference

Class

EmailBarChart

Namespace HtmlForgeX.Email
Assembly HtmlForgeX.Email
Base Element
Implements

Email-safe vertical bar chart rendered using table markup. Designed for broad client compatibility (including Outlook) without relying on SVG/canvas.

Inheritance

Constructors

Methods

AddPoint 2 overloads
public EmailBarChart AddPoint(String categoryLabel, Int32 value) #
Returns: EmailBarChart

Adds a category/point for a single-series chart.

Parameters

categoryLabel System.String requiredposition: 0
value System.Int32 requiredposition: 1
public EmailBarChart AddPoint(String categoryLabel, params Int32[] values) #
Returns: EmailBarChart

Adds a category/point with values matching series order.

Parameters

categoryLabel System.String requiredposition: 0
values System.Int32[] requiredposition: 1
public EmailBarChart AddSeries(String name, String color) #
Returns: EmailBarChart

Adds a series.

Parameters

name System.String requiredposition: 0
color System.String requiredposition: 1
public override String ToString() #
Returns: String
public EmailBarChart WithBarGap(Int32 pixels) #
Returns: EmailBarChart

Sets spacing between bars.

Parameters

pixels System.Int32 requiredposition: 0
public EmailBarChart WithHeight(Int32 pixels) #
Returns: EmailBarChart

Sets bar area height.

Parameters

pixels System.Int32 requiredposition: 0
public EmailBarChart WithLegend(Boolean show = true) #
Returns: EmailBarChart

Shows or hides the legend row.

Parameters

show System.Boolean = true optionalposition: 0
public EmailBarChart WithTotals(Boolean show = true) #
Returns: EmailBarChart

Shows or hides totals above each bar.

Parameters

show System.Boolean = true optionalposition: 0

Properties

public Int32 BarAreaHeightPx { get; set; } #

Maximum bar area height in pixels.

public Int32 BarGapPx { get; set; } #

Horizontal spacing between bars in pixels.

public Boolean ShowLegend { get; set; } #

Whether to render a legend row.

public Boolean ShowTotals { get; set; } #

Whether to render totals above each bar.

public String FontFamily { get; set; } #

Font family used for labels.

public String LabelColor { get; set; } #

Color used for category labels (light mode default).

public String TotalColor { get; set; } #

Color used for totals (light mode default).

public String LegendColor { get; set; } #

Color used for legend text (light mode default).

public String LabelFontSize { get; set; } #

Font size for labels (e.g. "12px").

public String TotalFontSize { get; set; } #

Font size for totals (e.g. "12px").

public String LegendFontSize { get; set; } #

Font size for legend (e.g. "12px").

public List<EmailBarChartSeries> Series { get; } #

Series definitions (name + color).

public List<EmailBarChartCategory> Categories { get; } #

Chart categories (label + per-series values).