combit List & Label 27 - .NET Hilfe
combit.Reporting.Dom Namespace / PropertyChartEngineBar2D Klasse
Member Beispiele


In diesem Thema
    PropertyChartEngineBar2D Klasse
    In diesem Thema

    Diese Klasse stellt ein 2D Balken-Diagramm dar. Hier stehen nur zwei Achsen zur Verfügung.

    Beispiel: Gesamtumsatz über die Monate oder Produktgruppen.

    Objektmodell
    PropertyChartEngineBar2D KlassePropertyFilling KlassePropertyChartSecondaryValueAxis KlassePropertyCategoryAxisX KlassePropertyValueAxisArray KlassePropertyValueAxisBase Klasse
    Syntax
    'Deklaration
     
    
    Public Class PropertyChartEngineBar2D 
       Inherits PropertyChartEngineBarBase
    public class PropertyChartEngineBar2D : PropertyChartEngineBarBase 
    public ref class PropertyChartEngineBar2D : public PropertyChartEngineBarBase 
    Beispiele
    // 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";
    Vererbungshierarchie

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

    Anforderungen

    Plattformen: Windows 8.1 bis Windows 10 (Version 20H2 - 21H2), Windows 11 (21H2), Windows Server 2012 - 2022

    Siehe auch