ReportR: Gauge Chart
Add a gauge chart to the personalized PDF report to represent average or actual scores or percentage results for question blocks or formulas. Respondents can see at a glance if they've scored towards the top-end or bottom-end of the scale.
Here's what we'll cover in this guide:
1 Setting up the widget
So let's get you creating a gauge chart!
1.1 Set gauge thresholds
After you've given a chart title that will be displayed above the gauge, we need to set thresholds. The values you set for the thresholds will determine the shading of the progress bar. Change the shading so that a higher score will have a different or brighter shade than a lower score.
1. Use the arrows to set the threshold value. This must be a number between 0 and 1. The values entered will be converted into percentages, e.g. a threshold value of 0.1 will cover the first 10% of the bar.
The values for the thresholds must be entered in order, starting with the lowest value (threshold 1) and increasing to the highest value.
2. Click the pencil icon to change the color of each threshold. The default shades would color the bar in red for the lowest scoring answers, yellow for mid-ranking scores, and for top-scoring answers, the bar would be colored in green.
If a score is in between 2 thresholds, a mix of the 2 threshold colors will be shown on the gauge.
3. If you want more than 3 colors of the progress bar, that's no problem! Simply click add threshold and add as many as you require. Keep in mind that the threshold value must be between 0 and 1!
Click Variables to access the drop-down menu of the variable on which you want the gauge chart to be based. There's a whole range of options - it could be the answer to a formula, question block score, custom score, or very simply an answer to a particular question! Just make sure the variable is a numerical value otherwise the gauge chart will not work.
1.2 Other gauge settings
Once the colors of the bar have been set, adjust your gauge chart a widget name, and chart title. It's time to specify the other settings of the gauge chart:
- Use the arrows or enter a value for the lowest and highest value of the bar. The minimum value will be shown under the gauge on the left-hand side, and the maximum value will be shown under the right-hand end of the bar. The Y-axis values can be any value you like (they do not have to be between 0 and 1 as the threshold values).
- Y-axis title - Name the progress bar. This title will show immediately on top of the bar, as opposed to the Chart Title which is displayed in larger letters above the Y-axis title.
- Set number of decimal places - Set this to 0 if you do not wish to show any decimal places. Otherwise choose how many decimal places you want, bearing in mind that too many decimal places are not so useful to the report reader. If you choose to show 3 decimal places for example, then the value 1.559247 would be displayed as 1.559.
Tip: To make advanced design changes to the gauge chart, use custom CSS.
1.3 Widget placement and size
Choose how you would like to align your gauge chart. You can choose to align it to one side and have explanatory text or another widget on the other side or center it.
- Left - widget will be aligned to the left side of the page, in a column layout
- Center - widget will be presented centered across the entire page from the left to the right (full width)
- Right - widget will be aligned to the right side of the page, in a column layout
If you would like a widget to appear side-by-side the gauge, make sure to set the widget aligned on one side of the page and the gauge on the other. For example, choose to align the text widget to the left, and align a gauge chart to the right.
Use the arrows or enter a value for the chart height and width. If you choose to place the gauge chart on either the left or the right side of the page, the chart will be automatically resized.
Click the Update preview button to see how the widget you've created looks like
Take a look below at some different layout possibilities:
Now if you want to show a gauge chart to all respondents, you're done! Just make sure to click save PDF and continue adding widgets. Check out section 3 to see all available widgets.
2 Widget logic rules
If you want to only show this widget under certain conditions, it's time to set the widget logic rules. If you want to show a general widget that is visualized every time a PDF report is generated, you can choose not to include a widget logic rule. Learn more about Widget Logic.
Once you've saved your logic rules, don't forget to save PDF and you're ready to add more widgets!