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


In This Topic
    PropertyChartEngineBar2D Class
    In This Topic
    This class represents a 2D bar chart.
    Object Model
    PropertyChartEngineBar2D ClassPropertyFilling ClassPropertyChartSecondaryValueAxis ClassPropertyCategoryAxisX ClassPropertyValueAxisArray ClassPropertyValueAxisBase Class
    Syntax
    'Declaration
     
    
    Public Class PropertyChartEngineBar2D 
       Inherits PropertyChartEngineBarBase
    public class PropertyChartEngineBar2D : PropertyChartEngineBarBase 
    public ref class PropertyChartEngineBar2D : public 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 8.1, Windows 10 (Version 20H2 - 21H2), Windows 11 (21H2), Windows Server 2012 - 2022

    See Also