Overview
Application Scenario
When the X axis label position is set to the 0 value, the X axis label will align with the 0 value, as shown in the following figure.
Implementation Method
Set the axis label position: On the attribute panel, choose Style > Axis > X Axis, and set Axis Label Position to Zero.
Example
Data Preparation
Create a general report, and enter the SQL statement select "Payment date" as "Payment Date",Balance-20000 as Balance,Payment-6000 as Payment from BillDetail limit 6 to create a database ds1.
Report Design
1. Merge required cells, click Cell Element, select Insert Chart from the drop-down list of Insert Element, and select Custom for Type, as shown in the following figure.
2. Choose Cell Element > Data to bind the data to the column chart, as shown in the following figure.
3. Choose Style > Axis > X Axis and set Axis Label Position to Zero, as shown in the following figure.
4. Choose Style > Axis > Series > Stack and Axis, and click the Add icon, as shown in the following figure.
5. Choose Style > Axis > Y Axis2, and set Axis Label Position to Right, as shown in the following figure.
Effect Display
PC
Save the template and click Pagination Preview. The following figure shows the effect.
Mobile Terminal
Template Download
For details, you can click to download the template 0 Value Alignment on X Axis in a Column Chart.cpt.