Formatting the labels

In JReport Designer, you can add as many labels as required into a chart. To add a label to a chart, right-click any chart element and select Add Label from the shortcut menu. A label with the text Label will then appear at the upper left corner of the chart platform. To remove a label, right-click it and select Remove.

This section shows you how to format the labels (including titles) of a chart to make them more meaningful.

To format the label in a chart:

  1. Double-click the label, or right-click the label and select Format Label from the shortcut menu to bring up the Format Label dialog.
  2. In the General tab, specify the label text, whether or not to attach an icon to the label, the icon settings if applying an icon, the position of the text in the label box, and the icon position relative to the text.
  3. In the Fill and Border tabs, specify the fill and border modes for the label (for details, refer to Formatting the platform).
  4. In the Font tab, set the font settings for the label.
  5. In the Orientation tab, set the rotation angle of the label text and the icon.
  6. When done, click OK to apply the settings and close the dialog.