Focal Point
[CLOSED] Line Graph/AGA: Sorting X-axis by one filed and displaying another

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/932105913

December 17, 2009, 08:12 AM
Stefan
[CLOSED] Line Graph/AGA: Sorting X-axis by one filed and displaying another
Hi there,

I have to display a line graph with a measure, grouped by a field, sorted over the x-axis by time.
X-Axis shall be sorted by mySortMonth, as it comes like "200901" for January, "200902" for February etc.
The label or displayed value is stored in myDisplayMonth, it has the corresponding values (January, February, etc.)

The code seen below does not work.

Any ideas would be appreciated.

 GRAPH FILE myHold
-* Created by Advanced Graph Assistant
SUM my Measure
BY myGroupfield
ACROSS mySortMonth
ACROSS myDisplayMonth

ON GRAPH PCHOLD FORMAT PNG
ON GRAPH SET GRAPHDEFAULT OFF
ON GRAPH SET VZERO OFF
ON GRAPH SET HTMLENCODE ON
ON GRAPH SET HAXIS 1000
ON GRAPH SET VAXIS 595
ON GRAPH SET UNITS PIXELS
ON GRAPH SET LOOKGRAPH VLINE
ON GRAPH SET GRMERGE ON
ON GRAPH SET GRMULTIGRAPH 0
ON GRAPH SET GRLEGEND 1
ON GRAPH SET GRXAXIS 1
ON GRAPH SET GRAPHSTYLE * 
...

This message has been edited. Last edited by: Kerry,


WF 7.6.9
PMF 5.1.3
BID 7.6.9

Win XP
HTML, PDF, Excel, PowerPoint
December 17, 2009, 09:18 AM
GinnyJakes
Stefan,

Here is a link that might help you.
http://forums.informationbuild...311015262#3311015262
This question has been asked and answered many times in this forum. Do a forum search on 'graph sort' and you will get many hits.

Good searching!


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google