ChartBarOptionsFluent
ChartForgeX.Core
Hand-written methods of ChartBarOptions: an assigned bar style overrides theme geometry, while a callback refines it.
Inheritance
- object
- ChartBarOptionsFluent
Methods
public static ChartBarOptions Grouped(ChartBarOptions chartBarOptions) #Places bars of one category side by side.
Parameters
- chartBarOptions ChartForgeX.Core.ChartBarOptions
- The instance.
public static ChartBarOptions MaxWidth(ChartBarOptions chartBarOptions, double? value) #Sets ChartBarOptions.MaxWidth: Maximum regular bar thickness in drawing pixels, or null to use the theme's 64-pixel default. Histograms retain their bin widths.
Parameters
- chartBarOptions ChartForgeX.Core.ChartBarOptions
- The instance.
- value double?
- The value.
Examples
// C# initializer or property // C# fluent
new global::ChartForgeX.Core.ChartBarOptions { MaxWidth = value }; chartBarOptions.MaxWidth(value);public static ChartBarOptions Mode(ChartBarOptions chartBarOptions, ChartBarMode value) #Sets ChartBarOptions.Mode: Gets or sets how multiple bar series are arranged within each category.
Parameters
- chartBarOptions ChartForgeX.Core.ChartBarOptions
- The instance.
- value ChartForgeX.Core.ChartBarMode
- The value.
Examples
// C# initializer or property // C# fluent
new global::ChartForgeX.Core.ChartBarOptions { Mode = value }; chartBarOptions.Mode(value);public static ChartBarOptions ShowTotals(ChartBarOptions chartBarOptions, bool value = true) #Sets ChartBarOptions.ShowTotals: Gets or sets a value indicating whether stacked bar totals are rendered above each category.
Parameters
- chartBarOptions ChartForgeX.Core.ChartBarOptions
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
new global::ChartForgeX.Core.ChartBarOptions { ShowTotals = value }; chartBarOptions.ShowTotals(value);public static ChartBarOptions Stacked(ChartBarOptions chartBarOptions) #Stacks bars of one category.
Parameters
- chartBarOptions ChartForgeX.Core.ChartBarOptions
- The instance.
public static ChartBarOptions Style(ChartBarOptions chartBarOptions, ChartBarStyle value) #Sets ChartBarOptions.Style: Gets or sets the visual treatment used by bar and horizontal-bar renderers.
Parameters
- chartBarOptions ChartForgeX.Core.ChartBarOptions
- The instance.
- value ChartForgeX.Core.ChartBarStyle
- The value.
Examples
// C# initializer or property // C# fluent
new global::ChartForgeX.Core.ChartBarOptions { Style = value }; chartBarOptions.Style(value);public static ChartBarOptions VisualStyle(ChartBarOptions bars, ChartBarVisualStyle style) #Sets the bar style. An assigned style overrides the theme's bar corner radius.
Parameters
- bars ChartForgeX.Core.ChartBarOptions
- The bar options to configure.
- style ChartForgeX.Core.ChartBarVisualStyle
- The style; a copy is stored.
public static ChartBarOptions VisualStyle(ChartBarOptions bars, Action<ChartBarVisualStyle> configure) #Refines the bar style on a copy, installed when the callback returns. Unlike assigning a style, it keeps the theme's corner radius unless the callback sets one.
Parameters
- bars ChartForgeX.Core.ChartBarOptions
- The bar options to configure.
- configure System.Action<ChartForgeX.Core.ChartBarVisualStyle>
- Edits the copy.