Sie zeigen eine alte Version dieser Seite an. Zeigen Sie die aktuelle Version an.

Unterschiede anzeigen Seitenhistorie anzeigen

« Vorherige Version anzeigen Version 3 Nächste Version anzeigen »

globe with meridians Language: Deutsch · English

hammer and wrench Dial (gauge) via image object

Dial/gauge display via an image object – JFreeChart DialPlot, evaluation time = report and label limits.

HOW-TO APPLICATION DEVELOPER UPDATED: JUL 2026 APPLIES TO NUCLOS 4.2026.X

On this page

A dial (gauge) cannot be shown as a standard chart but via an image object whose picture is drawn by a JFreeChart DialPlot (based on DialDemo2.java).

Summing the value correctly

To output a sum over a variable:

  • Create a variable with Reset Type = Report (sum over all records).
  • Set Evaluation Time = Report on the image – the value is passed to image generation only after the full calculation.

Implementation

A scriptlet/customizer class turns the value into a java.awt.Image: it builds a DialPlot with scale, needle and cap, wraps it in a JFreeChart and draws it via Graphics2D into a BufferedImage (e.g. 250×250 px):

Graphics2D g2 = image.createGraphics();
jfreechart.draw(g2, new Rectangle2D.Double(0.0, 0.0, 250, 250));
g2.dispose();
return image;

Label limits

The dial label does not support \n (line break). For multi-line labels use a second label.

Related pages

bar chart Charts in the designer


Charts.

Open →

open book Inserting images


Image object.

Open →

  • Keine Stichwörter