I. Overview
1. Expected effect
Use the gauge to achieve the effect of the progress bar, as shown below:
2. Implementation ideas
Insert the gauge in the cell, then set the data and adjust the style.
II. Example
1. Prepare Data
Create a new dataset ds1, the database query statement is: SELECT * FROM Sales_Volume
2. Design Report
1) Design Form
The table style is as follows, the E1 cell data is set to summary > sum.
2) Design Chart
Combine cells B1, C1, and D1, insert the Gauge, and select the Tube Gauge.
Bind chart data, as shown in the figure below:
Uncheck the Show Title , as shown in the figure below:
Uncheck the Use Label, as shown in the figure below:
The arrangement direction of the series is set to Vertical , as shown in the figure below:
Set the Axis, the Axis Label is set to Hidden, uncheck the Custom Minimum Value, and set the color of the Main Tick and Minor Tick to transparent, as shown in the figure below:
Cancel the Toolbar display, as shown in the figure below:
3. Effect preview
1) PC terminal
Save the report, click the Pagination Preview, the effect is shown in the figure below:
2)Mobile terminal
III. Template download
The completed template can be found at:
%FR_HOME%\webapps\webroot\WEB-INF\reportlets\doc-EN\Primary\Chart\Use_the_gauge_to_realize_the_progress_bar.cpt
Click to download the template:
Use_the_gauge_to_relize_the_progress_bar.cpt