[]
        
(Showing Draft Content)

Rules

You can dynamically control the chart appearance by creating a rule or several rules for each plot and specifying the background color, line color, line style, line width, and other elements of the chart visual presentation at rendering.

Add Rules to a Chart

  1. From the Report Explorer, expand the Chart data region node and select Plot.

  2. From the Properties inspector tab, go to Config > Rules property.


    rules-config


  3. Click Add, corresponding to the Rules property, and then click Edit to configure rules.


    rules-property


  4. Specify the Name of the rule.

  5. Specify the Condition expression for a target property

  6. In Rule Properties, click Add to add a new rule.

  7. In the Target Property field, select a property from the pre-defined list of properties - e.g. LineColor and the corresponding target value in the Value field. See the section Target Properties.


    rule-target-properties


Target Properties

You can customize the chart appearance by changing the target properties of the plot as described below.

Properties applicable to the chart types that are composed of data points, for example, Bar, Column, Pie, Bubble, etc.

  • BackgroundColor

  • LineColor

  • LineStyle

  • LineWidth

Properties applicable to the chart types that are composed of data point symbols, for example, Line, Radar Line, etc.

  • SymbolBackgroundColor

  • SymbolLineColor

  • SymbolLineStyle

  • SymbolLineWidth

LabelTemplate:

The LabelTemplate target property allows you to display labels and specify the label format for the chart data that meets the condition of a rule.

TooltipTemplate:

The TooltipTemplate target property allows you to display tooltips in the Web Viewer and specify the tooltip format for the chart data that meets the condition of a rule.