Changing Chart Element Spacing
Charts that are bound to multiple X or Y fields may be too wide or too tall to fully display within the boundaries of the Chart component. In these cases, scroll bars at the bottom and right of the chart will allow you to pan across the data. For such scrollable charts, you can change the spacing of the chart elements by making elements closer together or further apart.
To change the vertical or horizontal spacing of chart elements on a chart with scroll bars, follow the steps below:
Note: The 'Change Chart Spacing' option is only available on scrollable charts.

1. Right-click on the chart, and select 'Change Chart Spacing' from the context menu. This opens the chart spacing control.
2. Click the vertical arrows to incrementally increase or decrease the vertical space between chart elements.
3. Click the horizontal arrows to incrementally increase or decrease the horizontal space between chart elements.
When you have achieved the desired spacing, you can dismiss the spacing control by clicking anywhere else on the Viewsheet.
In this example, you will create a chart that displays sales totals for multiple categories and multiple states. Follow the steps below:
1. Create a new Viewsheet based on the sample 'Sales Explore' Worksheet in the 'Sales' folder.
2. Drag a Chart component onto the Viewsheet grid.
3. Click the center of the Chart (or click the 'Edit' button at the top-right). This opens the Chart Editor.
4. In the Chart Editor, make the following selections:
a. From the 'Dimensions' node in the Data Source panel, drag the 'Category' dimension to the 'X' field in the Data panel.
b. From the 'Dimensions' node in the Data Source panel, drag the 'State' dimension to the 'Y' field in the Data panel.
c. From the 'Measures' node in the Data Source panel, drag the 'Total' measure to the 'Y' field in the Data panel. Drop the 'Total' field below the existing 'State' field.
5. Drag the Chart handles to enlarge the Chart so that the Y-axis title (“State/Sum of Total”) is fully visible.
6. Move the mouse over the chart. Note the horizontal scroll bar that appears at the bottom of the chart.

To give this chart a better appearance, you will rotate the 'Category' label text, and then change the element spacing: You will increase the vertical space between 'State' elements, and decrease the horizontal space between 'Category' element. Follow the steps below:
7. Right-click on any X-axis label, and select 'Axis Properties' from the context menu. This opens the 'Axis Properties' dialog box.

8. In the 'Label' panel, select the upward-slanted label orientation, and click 'OK'.

9. Right-click anywhere on the chart, and select 'Change Chart Spacing' from the context menu. This opens the chart spacing control.

10. In the chart spacing control, click the top 'Decrease Width' button repeatedly until the button becomes disabled.

This allows all of the 'Category' labels to be displayed within the Chart component, without any need for a scroll bar.
11. (Optional) Click away from the chart to dismiss the chart spacing control. Drag the chart handles to widen the chart (for example, to prevent minor text cropping).

12. Right-click anywhere on the chart, and again select 'Change Chart Spacing' from the context menu.
13. In the chart spacing control, click the side 'INcrease Height' button. repeatedly until the states are nicely separated.

Continue clicking the 'INcrease Height' button until the states are nicely separated and the corresponding totals are clearly displayed. When you are satisfied with the appearance, click away from the chart to dismiss the chart spacing control.
14. Move the mouse over the chart. Note the vertical scrollbar that appears at the side of the chart.

15. (Optional) Drag the chart handles to increase the height of the chart, allowing more states to be displayed.
You can now scroll the chart to see different states, while simultaneously viewing all categories for each state.

| << Manually Refreshing a Chart | © 1996-2013 InetSoft Technology Corporation (v11.4) | Grouping Chart Labels into Named Groups >> |