combit List & Label 30 - .NET Help
combit.Reporting.Dom Namespace / PropertyChartEngineBar2D Class
Members Example


PropertyChartEngineBar2D Class
This class represents a 2D bar chart.
Object Model
PropertyChartEngineBar2D ClassPropertyColorModeChart ClassPropertyFilling ClassPropertyChartSecondaryValueAxis ClassPropertyCategoryAxisX ClassPropertyValueAxisArray ClassPropertyValueAxisBase Class
Syntax
'Declaration
 
Public Class PropertyChartEngineBar2D 
   Inherits PropertyChartEngineBarBase
 
Example
// add bar chart to container and assign name
SubItemChart chartBar = new SubItemChart(LlChartType.Bar2D, container.SubItems); 
chartBar.Name = "2D bar chart"; 
 
//pass source table path 
chartBar.SourceTablePath = "Employees.Orders(Employees2Orders).Order_Details(Orders2Order Details)"; 
 
//access chart engine
PropertyChartEngineBar2D engineBar = (PropertyChartEngineBar2D)chartBar.Definition.ChartEngine; 
                     
//set data source properties
engineBar.XAxis.Contents = "Employees.LastName + \", \" + Employees.FirstName"; 
engineBar.YAxes[0].Value = "Order_Details.UnitPrice*Order_Details.Quantity"; 
engineBar.YAxes[0].CoordinateLabelOnObject.Placement = "1"; 
                 
//set chart title
chartBar.Definition.Title.Contents = "\"2D bar chart\""; 
                     
//format legend
PropertyOutputFormatterCurrency currBar = new PropertyOutputFormatterCurrency(engineBar.ZAxes[0].CoordinateLabelOnObject.OutputFormatter);  
  
//set two decimals 
currBar.CountOfDecimals = "2";
Inheritance Hierarchy

System.Object
   combit.Reporting.Dom.DomItem
      combit.Reporting.Dom.PropertyChartEngineBase
         combit.Reporting.Dom.PropertyChartEngineBarBase
            combit.Reporting.Dom.PropertyChartEngineBar2D

Requirements

Platforms: Windows 10 (Version 21H2 - 23H2), Windows 11 (21H2 - 22H2), Windows Server 2016 - 2022
.NET: .NET Framework 4.8, .NET 6, .NET 8, .NET 9

See Also