HtmlForgeX

API Reference

Class

ChartJsGlobalConfig

Namespace HtmlForgeX
Assembly HtmlForgeX

Global configuration settings for Chart.js across the document.

Inheritance

  • Object
  • ChartJsGlobalConfig

Constructors

Properties

public Boolean LazyInitByDefault { get; set; } #

When true, Chart.js initialization is deferred until the chart canvas becomes visible (e.g., inside inactive tabs, collapsed accordions, or wizard steps). This can significantly reduce initial load time for large, generated reports.

public Boolean FollowDocumentThemeByDefault { get; set; } #

When true, HtmlForgeX applies Bootstrap/Tabler theme-aware defaults to Chart.js and updates existing charts when the document theme changes.

public ChartValueClampingOptions DefaultValueClamping { get; set; } #

Optional default value clamping/rounding applied to all Chart.js charts.