This shows a value for each X axis value. Instead, I need to show only first and last value. I know it's possible to show/hide data values for individual series, i.e.
setDisplay(gestDataText(0),true
and so on, but I am not able to show only the two values mentioned.
I've tried with
setDisplay(getDataText(0,1),true);
but doesn't work.
Any suggestions?
Thank's in advice.
FerranThis message has been edited. Last edited by: ferran,
The numbers for getDataText are for the series, not the data points.
If you know what the first and last values are of the graph, you could try something like this:
GRAPH FILE CAR
SUM
COMPUTE A/D18.2=IF COUNTRY EQ 'ENGLAND' THEN DEALER_COST ELSE -1 ;
COMPUTE B/D18.2=IF COUNTRY EQ 'W GERMANY' THEN DEALER_COST ELSE -1 ;
DEALER_COST
BY COUNTRY
ON GRAPH PCHOLD FORMAT PNG
ON GRAPH SET HTMLENCODE ON
ON GRAPH SET GRAPHDEFAULT OFF
ON GRAPH SET VZERO OFF
ON GRAPH SET HAXIS 770
ON GRAPH SET VAXIS 405
ON GRAPH SET UNITS PIXELS
ON GRAPH SET LOOKGRAPH VLINE
ON GRAPH SET GRMERGE ADVANCED
ON GRAPH SET GRMULTIGRAPH 0
ON GRAPH SET GRLEGEND 0
ON GRAPH SET GRXAXIS 1
ON GRAPH SET GRAPHSTYLE *
setReportParsingErrors(false);
setSelectionEnableMove(false);
setDepthRadius(0);
setUseSeriesShapes(true);
setMarkerSizeDefault(50);
setTransparentBorderColor(getChartBackground(),true);
setPlace(true);
setDisplay(getDataText(0),true);
setDisplay(getDataText(),true);
setDisplay(getDataText(2),false);
setDisplay(getLegendArea(),false);
setY1ScaleMinAuto(false);
setY1ScaleMin(0.0);
setY1OffScaleDisplay(false);
ENDSTYLE
END
Essentially you can add additional data lines on your graph, and display the data values on those lines. The last 3 graph statements cover up unnecessary data points: