Values on x-axis with histograms

classic Classic list List threaded Threaded
1 message Options
Tom
Reply | Threaded
Open this post in threaded view
|

Values on x-axis with histograms

Tom

Hi everyone

 

Designing the Graph (histogram) with the syntax below (and a very small sample of 7), I got values on the x-axis which I’d like to change. The first and last value should be the min (1) and max (4) of the answer scale (in order to be comparable to other graphs), instead of the actual and automatically chosen values of 2.25 and 3.5. Clicking on the axis, trying to put these values in the fields for user-defined values works – till I want to apply it: the values are changed automatically to 10 and 40! I can’t force them to 1 and 4! What happens? What can I do?

 

Thanks for help

Tom

 

 

GGRAPH

  /GRAPHDATASET NAME="graphdataset" VARIABLES=Nutzen MISSING=LISTWISE REPORTMISSING=NO

  /GRAPHSPEC SOURCE=INLINE.

BEGIN GPL

  SOURCE: s=userSource(id("graphdataset"))

  DATA: Nutzen=col(source(s), name("Nutzen"))

  GUIDE: axis(dim(1), label("Nutzen"))

  GUIDE: axis(dim(2), label("Häufigkeit"))

  ELEMENT: interval(position(summary.count(bin.rect(Nutzen))), shape.interior(shape.square))

END GPL.