Line or Mark Point Attribute Change of Line Charts

  • Last update:January 06, 2025
  • 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.

     折线图改变1.png

    iconNote:
    The line type in condition attributes corresponds to the whole line of the series, and you cannot set a certain line type for a range or a value.

    Changing Line Colors in a Range

    Data Preparation

    Create a built-in data set named Embedded1, as shown in the following figure.

     折线图改变2.png

    Chart Insertion

    Merge required cells, and insert a line chart, as shown in the following figure.

     折线图改变3.png

    Data Binding

    Bind the data to the chart, as shown in the following figure.

     折线图改变4.png

    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.

     折线图改变5.png

    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.

     折线图改变1.png

    Mobile Terminal

    The report can be previewed on both the DataAnalyst app and the HTML5 terminal. The following figure shows the effect.

     折线图改变6.jpg

    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.

    iconNote: 
    No restriction is set for Operator when you set conditions for marker points.

     折线图改变7.png

    Effect Display

    PC

    Save the report and click Pagination Preview. The following figure shows the preview effect.

     折线图改变8.png

    Mobile Terminal

    The report can be previewed on both the DataAnalyst app and the HTML5 terminal. The following figure shows the effect.

     折线图改变9.jpg

    Template Download

    For details, you can download the templates

    Changing Line Colors in a Range.cpt

    Custom Mark Point Attribute.cpt

    Attachment List


    Theme: Chart
    • Helpful
    • Not helpful
    • Only read

    滑鼠選中內容,快速回饋問題

    滑鼠選中存在疑惑的內容,即可快速回饋問題,我們將會跟進處理。

    不再提示

    10s後關閉

    Get
    Help
    Online Support
    Professional technical support is provided to quickly help you solve problems.
    Online support is available from 9:00-12:00 and 13:30-17:30 on weekdays.
    Page Feedback
    You can provide suggestions and feedback for the current web page.
    Pre-Sales Consultation
    Business Consultation
    Business: international@fanruan.com
    Support: support@fanruan.com
    Page Feedback
    *Problem Type
    Cannot be empty
    Problem Description
    0/1000
    Cannot be empty

    Submitted successfully

    Network busy