I know nothing about SAS and I hope this is an appropriate place to post this question. If not, I hope someone can point me in the right direction. I'm a typesetter and I usually create graphs in Adobe Illustrator by inputing the data points provided by our authors. I have an author who has done a graph in SAS and says, "The graph is generated by the SAS procedure as a JPG file. I can send this, but the procedure does not provide data points as such." I don't understand how it would be possible to have a line graph and not have any way to access data points that the graph is based on. Is this really not possible or is the author simply not understanding what we're asking for? Can someone give me some simple instructions I can pass along to the author for being able to generate the data points? Thanks for any help you can provide.
Would data points like this be useful to you???
<area shape=poly alt="Region: Western Europe
Total Sales: $4,873,000" title="Region: Western Europe
Total Sales: $4,873,000" coords="466,432,454,424,450,419,450,65,461,61,473,57,485,54,491,53,539,53,545,54,557,63,559,68,559,416,558,421,546,424,534,428,522,431,468,432,">
<area shape=poly alt="Region: Canada
Total Sales: $4,255,712" title="Region: Canada
Total Sales: $4,255,712" coords="320,432,308,423,304,419,304,113,306,109,318,105,330,102,342,98,402,101,413,110,413,416,412,421,400,425,388,428,376,432,">
<area shape=poly alt="Region: Asia
Total Sales: $460,231" title="Region: Asia
Total Sales: $460,231" coords="174,432,162,423,158,418,158,388,169,384,181,380,193,377,247,376,253,377,259,381,265,385,267,391,267,421,255,424,243,428,231,431,177,432,">
It was created using this syntax (below) -- and even though ODS created a .PNG file for display (a bar chart with 3 bars),
the map tag of bar values is included in the HTML file created with the above syntax.
options nodate nonumber;
ods html path='c:\temp' (url=none)
goptions reset=all border device=actximg;
proc gchart data=sashelp.shoes;
title 'Vertical Bar Chart';
where region in ('Asia', 'Canada', 'Western Europe');
vbar3d Region / shape=hexagon sumvar=sales;
ods html close;
Basically, I just ignored the .PNG file and looked inside the HTML file. Of course, this method may be cumbersome
for more complicated pictures. Your person who's delivering the information might be better off setting up a conference
call between you and him and Technical Support. The datapoints for any graphics produced with SAS/Graph come directly
from a SAS dataset -- so possibly the UNSUMMARIZED values would be in the dataset and to product the graphic, SAS/Graph
is consolidating the values. I assume that you would NOT want the unsummarized values. It is entirely possible that Tech Support will have
a better solution for what you want.
Thanks, Cynthia. I could easily create a bar chart with that map data. So, I take it that SAS can easily generate html code for its graphs? I would imagine a line graph would create very different html code, though. But, maybe I could just see if the author can generate an html file for me for the graph and that would include the data I need.
The syntax would pretty much be the same as previously posted, with his GPLOT procedure replacing the GCHART procedure. Tech Support really can help him figure out if there's a better way to deliver the data points to you.