ChartBarOptions
ChartForgeX.Core
Bar layout, stacking and styling. Configure it through ChartOptions.Bars.
Inheritance
- object
- ChartBarOptions
Usage
Explore 37 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 15
- Extension method ChartBarOptions.Grouped
- Extension method ChartBarOptions.MaxWidth
- Extension method ChartBarOptions.Mode
- Extension method ChartBarOptions.ShowTotals
- Extension method ChartBarOptions.Stacked
- Extension method ChartBarOptions.Style
- Extension method ChartBarOptions.VisualStyle
- Method ChartBarOptionsFluent.Grouped
- Method ChartBarOptionsFluent.MaxWidth
- Method ChartBarOptionsFluent.Mode
- Method ChartBarOptionsFluent.ShowTotals
- Method ChartBarOptionsFluent.Stacked
- Method ChartBarOptionsFluent.Style
- Method ChartBarOptionsFluent.VisualStyle
- Property ChartOptions.Bars
Accepted by parameters 22
- Extension method Chart.Bars
- Extension method Chart.Bars
- Extension method ChartBarOptions.Grouped
- Extension method ChartBarOptions.MaxWidth
- Extension method ChartBarOptions.Mode
- Extension method ChartBarOptions.ShowTotals
- Extension method ChartBarOptions.Stacked
- Extension method ChartBarOptions.Style
- Extension method ChartBarOptions.VisualStyle
- Method ChartBarOptionsFluent.Grouped
- Method ChartBarOptionsFluent.MaxWidth
- Method ChartBarOptionsFluent.Mode
- Method ChartBarOptionsFluent.ShowTotals
- Method ChartBarOptionsFluent.Stacked
- Method ChartBarOptionsFluent.Style
- Method ChartBarOptionsFluent.VisualStyle
- Method ChartFluent.Bars
- Method ChartFluent.Bars
- Extension method ChartOptions.Bars
- Extension method ChartOptions.Bars
- Method ChartOptionsFluent.Bars
- Method ChartOptionsFluent.Bars
Constructors
public ChartBarOptions() #Inherited Methods
Properties
public ChartBarMode Mode { get; set; } #FluentPreset("Grouped", 0, Summary = "Places bars of one category side by side.") FluentPreset("Stacked", 1, Summary = "Stacks bars of one category.")Gets or sets how multiple bar series are arranged within each category.
public ChartBarStyle Style { get; set; } #Gets or sets the visual treatment used by bar and horizontal-bar renderers.
public ChartBarVisualStyle VisualStyle { get; set; } #NoFluentGets or sets reusable visual tokens for bar and horizontal-bar renderers.
public bool ShowTotals { get; set; } #Gets or sets a value indicating whether stacked bar totals are rendered above each category.
public double? MaxWidth { get; set; } #Maximum regular bar thickness in drawing pixels, or null to use the theme's 64-pixel default. Histograms retain their bin widths.
Extension 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.