Overview
Version
Report Server Version |
---|
11.0 |
Attribute Setting
You can set condition attributes to change the line or mark point attribute of line charts. For example, you can change line colors in a range, as shown in the following figure.

Changing Line Colors in a Range
Data Preparation
Create a built-in data set named Embedded1, as shown in the following figure.
Chart Insertion
Merge required cells, and insert a line chart, as shown in the following figure.
Data Binding
Bind the data to the chart, as shown in the following figure.
Condition Attribute Setting
Select the chart, choose Cell Element > Special Effect > Condition Display, add Conditional Attribute 1 (Color), and set the color of lines with values greater than 0 to red. Note: As the lines correspond to ranges, you cannot use Equal to in condition attribute setting. Only range operators are supported, for example, Greater than/Equal to.
Therefore, you should add the condition Value Greater than/Equal to '1', as shown in the following figure.
Effect Display
PC
Save the template and click Pagination Preview. The lines in ranges where sales are greater than 0 are displayed in red, as shown in the following figure.
Mobile Terminal
The report can be previewed on both the DataAnalyst app and the HTML5 terminal. The following figure shows the effect.
Customizing Mark Point Attribute
The following introduces the setting of the condition attribute, and the other settings are the same as those in the above-mentioned example.
Condition Attribute Setting
Add Custom Mark Point Attribute, and set Type to diamond, Fill Color to red, and Radius to 4.5px for mark points where the sales volume is equal to 0, as shown in the following figure.

Effect Display
PC
Save the report and click Pagination Preview. The following figure shows the preview effect.
Mobile Terminal
The report can be previewed on both the DataAnalyst app and the HTML5 terminal. The following figure shows the effect.
Template Download
For details, you can download the templates