API Reference
ChartBarVisualStyle
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.
Returned or exposed by 13
- Method ChartBarVisualStyle.Clone
- Method ChartBarVisualStyle.DashboardCapsule
- Method ChartBarVisualStyle.Flat
- Method ChartBarVisualStyle.Solid
- Method ChartBarVisualStyle.WithBodyOpacity
- Method ChartBarVisualStyle.WithCapHighlight
- Method ChartBarVisualStyle.WithCapInset
- Method ChartBarVisualStyle.WithCapOpacity
- Method ChartBarVisualStyle.WithCapShadow
- Method ChartBarVisualStyle.WithCapThickness
- Method ChartBarVisualStyle.WithCornerRadius
- Method ChartBarVisualStyle.WithKind
- Property ChartOptions.BarVisualStyle
Accepted by parameters 2
- Method Chart.ConfigureBarVisualStyle
- Method Chart.WithBarVisualStyle
Constructors
public ChartBarVisualStyle() #Methods
public ChartBarVisualStyle Clone() #ChartBarVisualStyleCreates a copy that can be safely reused and customized.
public static ChartBarVisualStyle DashboardCapsule() #ChartBarVisualStyleCreates a soft dashboard capsule style for stacked or grouped bars.
public static ChartBarVisualStyle Flat() #ChartBarVisualStyleCreates the flat bar style: each bar is filled with its colour only, without gradient or highlight.
public static ChartBarVisualStyle Solid() #ChartBarVisualStyleCreates the default solid bar style: a soft gradient derived from the bar colour and a light top highlight.
public ChartBarVisualStyle WithBodyOpacity(Double opacity) #ChartBarVisualStyleSets the opacity used for translucent segment bodies.
Parameters
- opacity System.Double
public ChartBarVisualStyle WithCapHighlight(Double opacity) #ChartBarVisualStyleSets the white highlight opacity drawn over value-edge caps.
Parameters
- opacity System.Double
public ChartBarVisualStyle WithCapInset(Double inset) #ChartBarVisualStyleSets the inset from the segment edge before a rounded cap starts.
Parameters
- inset System.Double
public ChartBarVisualStyle WithCapOpacity(Double opacity) #ChartBarVisualStyleSets the opacity used for value-edge caps.
Parameters
- opacity System.Double
public ChartBarVisualStyle WithCapShadow(Double opacity, Double offset) #ChartBarVisualStyleSets the soft cap shadow opacity and offset in pixels.
Parameters
- opacity System.Double
- offset System.Double
public ChartBarVisualStyle WithCapShadow(Double opacity, Double offset, Double spread) #ChartBarVisualStyleSets the soft cap shadow opacity, offset, and spread in pixels.
Parameters
- opacity System.Double
- offset System.Double
- spread System.Double
public ChartBarVisualStyle WithCapThickness(Double thickness) #ChartBarVisualStyleSets the cap thickness in pixels.
Parameters
- thickness System.Double
public ChartBarVisualStyle WithCornerRadius(Double radius) #ChartBarVisualStyleSets the maximum translucent segment body corner radius in pixels.
Parameters
- radius System.Double
public ChartBarVisualStyle WithKind(ChartBarStyle kind) #ChartBarVisualStyleSets the bar visual treatment.
Parameters
- kind ChartForgeX.Core.ChartBarStyle
Inherited Methods
public virtual Boolean Equals(Object? obj) #BooleanParameters
- obj Object?
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.