Skip to main content
All docs
V26.1
  • TdxChartXYSeriesBarView Class

    Stores Bar View settings.

    Declaration

    TdxChartXYSeriesBarView = class(
        TdxChartXYSeriesCustomBarView
    )

    Remarks

    A Bar View displays series as sets of vertical or horizontal bars depending on axis positions. Bar lengths reflect series point values. Bar Views are often used to compare values in different categories.

    The TdxChartXYSeriesBarView class implements the Simple Bar View that displays series values as colored bars grouped by argument values (categories). Use this View when you need to display only one series or when you need to compare multiple series.

    VCL Chart Control: An XY Diagram with Three Simple Bar Series

    Main API Members

    The list below outlines key members of the TdxChartXYSeriesBarView class.

    Bar View-Specific Settings

    Appearance
    Provides access to general bar appearance settings.
    BarWidth | BarDistance
    Allow you to adjust the width of bars and distances between them.
    ValueLabels
    Provides access to value label settings.

    Common XY Series View API Members

    AxisX | AxisY

    Allow you to associate the series View with different axes of arguments and values in the parent XY diagram.

    The Chart control uses the scales of the associated axes to display an XY series.

    GetDescription
    Returns the series View type description.
    GetViewImages
    Returns an image list populated with icons that correspond to all registered series View types.
    GetViewImageIndex
    Returns the index of the icon that corresponds to the current series View type.

    General-Purpose API Members

    Assign
    Copies compatible settings between Bar Views.
    Series
    Provides access to the parent XY series.

    To see bar series in action, run the Chart Control demo in the VCL Demo Center installed with compiled DevExpress VCL demos. Click the Bar item in the sidebar to display the corresponding demo.

    Download: Compiled VCL Demos

    Compiled DevExpress demos ship with source code installed in the Public Documents folder (%PUBLIC%) for all users (default). You can find all project and source code files for the Chart Control demo in the following folder:

    %PUBLIC%\Documents\DevExpress VCL Demos\MegaDemos\Product Demos\ExpressChart\
    

    Tip

    Project and source code files for all compiled DevExpress VCL Demos are maintained in a public repository hosted on GitHub:

    View Example: DevExpress VCL Demos

    Indirect TdxChartXYSeriesBarView Class References

    The TdxChartCustomSeries.View property references the TdxChartXYSeriesBarView class as a TdxChartSeriesCustomView object if the ViewType property of the parent series is set to 'Bar'.

    You need to cast the returned object to the TdxChartXYSeriesBarView class to access all public API members.

    Other Bar View Series Classes

    TdxChartXYSeriesFullStackedBarView
    Stores Full-Stacked Bar View settings.
    TdxChartXYSeriesStackedBarView
    Stores Stacked Bar View settings.
    See Also