ActiveReports 16 .NET Edition
ActiveReports 16 User Guide / Concepts / Page Report/RDL Report Concepts / Toolbox / Chart / Rules / Customize Chart Appearance / DataPoint Styles
In This Topic
    DataPoint Styles
    In This Topic

    DataPoint Styles include such target properties as BackgroundColor, LineColor, LineStyle, and LineWidth. These properties are applicable to the chart types that are composed of data points - for example, Bar, Column, Pie, Bubble, etc.

    This topic uses a report with a Column chart that displays global sales by year.

    BackgroundColor

    To change the BackgroundColor target property of the chart, you can add a rule with the following settings.

    Property Value
    RuleDesigner Collection Editor > Condition =Chart!CurrentData<110
    RulePropertyDesigner Collection Editor > TargetProperty BackgroundColor
    RulePropertyDesigner Collection Editor > Value Green

    At preview, you will see Sales with the data below 110 get the green background color.

    Chart Rules Background Color 

    LineColor

    Add the LineColor target property to the same condition (see previous image) for the chart with the following settings:

    Property Value
    RulePropertyDesigner Collection Editor > TargetProperty LineColor
    RulePropertyDesigner Collection Editor > Value Red

    LineStyle

    Add the LineStyle target property to the same condition (see previous image) for the chart with the following settings:

    Property Value
    RulePropertyDesigner Collection Editor > TargetProperty LineStyle
    RulePropertyDesigner Collection Editor > Value Double

    LineWidth

    Add the LineWidth target property to the same condition (see previous image) for the chart with the following settings:

    Property Value
    RulePropertyDesigner Collection Editor > TargetProperty LineWidth
    RulePropertyDesigner Collection Editor > Value 2

    The final chart looks as follows.

    Chart Rules Line Width