Setting Two Y Axes for Charts

  • Last update:February 06, 2025
  • Overview

    Problem

    When you encounter the following problems:

    1. Multiple indicators on one vertical axis impair data clarity.

    2. You want to use two Y axes to show values and percentages separately.

    3. Two lines have similar values and are overlapping.

    You can refer to the solutions in this document.

    Solution

    Drag two indicator fields into Vertical Axis, and select Right-value Axis as Shared Axis when setting value axis of the second indicator field.

    iconNote:
    Before setting the right-value axis, you must make sure Vertical Axis is an indicator aggregation.

    Example

    This document takes a column chart as an example.

    Data Preparation

    1. Log in to the system as the admin, click My Analysis, select a folder in All Analysis, and click New Subject, as shown in the following figure.

    2. Choose Local Excel > Upload Data to upload the table data.

    Sample data: Contract Information.xlsx

    3. After the data is uploaded, click OK, as shown in the following figure.

    Component Creation

    1. Click Component in the lower left corner, as shown in the following figure.

    2. Select Custom Chart in Chart Type and select Column Chart in Graphic Property. Drag Country into Horizontal Axis. Drag Contract Amount and Payment Amount into Vertical Axis, as shown in the following figure.

    3. To differentiate the colors of the indicator fields, drag Indicator Name into the Color bar, as shown in the following figure.

    Setting Two Y Axes

    iconNote:
    To set Y axis labels, scales, titles, etc., see Setting Chart Value Axis.

    1. Hover your cursor on Payment Amount in Vertical Axis, click 1679639385f4C6.png, and click Set Value Axis(Left-value Axis), as shown in the following figure.

    2. Select Right-value Axis as Shared Axis, as shown in the following figure.

    3. The column chart now has two Y axes, as shown in the following figure.

    Setting the Value Format of Y Axes

    1. Hover your cursor on Contract Amount in Vertical Axis, click 1679639385f4C6.png, and click Value Format.

    2. Select Million as Quantity Unit, as shown in the following figure.

    3. Follow the same steps to set the numeric format for Payment Amount. Select Million as Quantity Unit.

    Effect Display

    1. PC

    The following figure shows the effect.

    2. Mobile Terminal

    The following figure shows the preview effect on the DataAnalyst app and the HTML5 terminal.

    附件列表


    主题: Creating a Visual Component
    Previous
    Next
    • Helpful
    • Not helpful
    • Only read

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

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

    不再提示

    8s后關閉

    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