Project

ChartForgeX

Render deterministic charts, dashboards, topology, hierarchy, and report visuals directly from .NET.

Stars 47
Forks 2
NuGet downloads 75,067
Release ChartForgeX-v2.0.0
Language: HTML Updated: 2026-10-12

API Reference

Class

ChartBarVisualStyle

Namespace ChartForgeX.Core
Assembly ChartForgeX
Modifiers sealed

Defines reusable visual tokens for bar and horizontal-bar marks.

Inheritance

  • Object
  • ChartBarVisualStyle

Usage

Explore 15 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters 2

Constructors

public ChartBarVisualStyle() #

Methods

public ChartBarVisualStyle Clone() #
Returns: ChartBarVisualStyle

Creates a copy that can be safely reused and customized.

public static ChartBarVisualStyle DashboardCapsule() #
Returns: ChartBarVisualStyle

Creates a soft dashboard capsule style for stacked or grouped bars.

public static ChartBarVisualStyle Flat() #
Returns: ChartBarVisualStyle

Creates the flat bar style: each bar is filled with its colour only, without gradient or highlight.

public static ChartBarVisualStyle Solid() #
Returns: ChartBarVisualStyle

Creates the default solid bar style: a soft gradient derived from the bar colour and a light top highlight.

public ChartBarVisualStyle WithBodyOpacity(Double opacity) #
Returns: ChartBarVisualStyle

Sets the opacity used for translucent segment bodies.

Parameters

opacity System.Double requiredposition: 0
public ChartBarVisualStyle WithCapHighlight(Double opacity) #
Returns: ChartBarVisualStyle

Sets the white highlight opacity drawn over value-edge caps.

Parameters

opacity System.Double requiredposition: 0
public ChartBarVisualStyle WithCapInset(Double inset) #
Returns: ChartBarVisualStyle

Sets the inset from the segment edge before a rounded cap starts.

Parameters

inset System.Double requiredposition: 0
public ChartBarVisualStyle WithCapOpacity(Double opacity) #
Returns: ChartBarVisualStyle

Sets the opacity used for value-edge caps.

Parameters

opacity System.Double requiredposition: 0
WithCapShadow 2 overloads
public ChartBarVisualStyle WithCapShadow(Double opacity, Double offset) #
Returns: ChartBarVisualStyle

Sets the soft cap shadow opacity and offset in pixels.

Parameters

opacity System.Double requiredposition: 0
offset System.Double requiredposition: 1
public ChartBarVisualStyle WithCapShadow(Double opacity, Double offset, Double spread) #
Returns: ChartBarVisualStyle

Sets the soft cap shadow opacity, offset, and spread in pixels.

Parameters

opacity System.Double requiredposition: 0
offset System.Double requiredposition: 1
spread System.Double requiredposition: 2
public ChartBarVisualStyle WithCapThickness(Double thickness) #
Returns: ChartBarVisualStyle

Sets the cap thickness in pixels.

Parameters

thickness System.Double requiredposition: 0
public ChartBarVisualStyle WithCornerRadius(Double radius) #
Returns: ChartBarVisualStyle

Sets the maximum translucent segment body corner radius in pixels.

Parameters

radius System.Double requiredposition: 0
public ChartBarVisualStyle WithKind(ChartBarStyle kind) #
Returns: ChartBarVisualStyle

Sets the bar visual treatment.

Parameters

kind ChartForgeX.Core.ChartBarStyle requiredposition: 0

Properties

public ChartBarStyle Kind { get; set; } #

Gets or sets the bar visual treatment.

public Double BodyOpacity { get; set; } #

Gets or sets the opacity used for translucent segment bodies.

public Double CapOpacity { get; set; } #

Gets or sets the opacity used for value-edge caps.

public Double CapThickness { get; set; } #

Gets or sets the cap thickness in pixels.

public Double CapInset { get; set; } #

Gets or sets the inset from the segment edge before a rounded cap starts.

public Double CornerRadius { get; set; } #

Gets or sets the maximum translucent segment body corner radius in pixels.

public Double CapShadowOpacity { get; set; } #

Gets or sets the soft cap shadow opacity.

public Double CapShadowOffset { get; set; } #

Gets or sets the cap shadow offset in pixels.

public Double CapShadowSpread { get; set; } #

Gets or sets the extra soft-shadow thickness around value-edge caps.

public Double CapHighlightOpacity { get; set; } #

Gets or sets the white highlight opacity drawn over value-edge caps.