Hi,
one of our EG 7 users has spotted an issue with line plots. If we do a line plot, selecting the "Multiple line plots by group column" option, the final graph displays the graph axes, titles etc. but the curves have all defaulted to a white line, marker and border, so are invisible on the default white background!
I have confirmed that other users have the same issue.
I know we can manually reconfigure the curves and markers, but this seems like a bug in EG 7. If we revert to just doing a basic line plot, the lines and markers are displayed, but that is not much use to us.
Here is the code that the task generates:
/* ------------------------------------------------------------------- Code generated by SAS Task Generated on: Thursday, October 05, 2017 at 4:02:46 PM By task: Line Plot Input Data: SASApp:WORK.F43_OVERLAY Server: SASApp ------------------------------------------------------------------- */ %_eg_conditional_dropds(WORK.SORTTempTableSorted); /* ------------------------------------------------------------------- Sort data set WORK.F43_OVERLAY ------------------------------------------------------------------- */ PROC SORT DATA=WORK.F43_OVERLAY(KEEP=time "Profile2(degc)"n run) OUT=WORK.SORTTempTableSorted ; BY time; RUN; SYMBOL1 INTERPOL=JOIN HEIGHT=10pt VALUE=NONE LINE=1 WIDTH=2 CV = _STYLE_ ; SYMBOL2 INTERPOL=JOIN HEIGHT=10pt VALUE=NONE LINE=1 WIDTH=2 CV = _STYLE_ ; Legend1 FRAME ; Axis1 STYLE=1 WIDTH=1 MINOR=NONE ; Axis2 STYLE=1 WIDTH=1 MINOR=NONE ; TITLE; TITLE1 "Line Plot"; FOOTNOTE; FOOTNOTE1 "Generated on %TRIM(%QSYSFUNC(DATE(), NLDATE20.)) at %TRIM(%SYSFUNC(TIME(), TIMEAMPM12.))"; PROC GPLOT DATA = WORK.SORTTempTableSorted ; PLOT 'Profile2(degc)'n * time =run / VAXIS=AXIS1 HAXIS=AXIS2 FRAME LEGEND=LEGEND1 ; /* ------------------------------------------------------------------- End of task code ------------------------------------------------------------------- */ RUN; QUIT; %_eg_conditional_dropds(WORK.SORTTempTableSorted); TITLE; FOOTNOTE; GOPTIONS RESET = SYMBOL;
Does anyone know a way around it?
Thanks,
Adrian.
@Reeza, thanks for your help. When I ran it on the STOCKS data it worked fine.
Eventually I found that the values in the grouping column had a leading character (a whitespace character). When I removed the leading character, the curves were displayed correctly.
Still seems like a bug, so I will relay it to Tech Support.
Regards,
Adrian.
Colors and markers are defined by the default STYLE.
What is your default STYLE?
And I would contact SAS Tech Support if you haven't already 🙂
Hi @Reeza,
in Enterprise Guide we are using the default HTMLBlue.
I'm not sure how to see the setup of _STYLE_.
Thanks,
Adrian.
I'm using SAS EG 7.1 as well, with SAS 9.4 TS1M3, with default HTML output.
Using the Line Plot task (not wizard) with the following set up, and default HTMLBLUE style, I don't see any issues.
Can you replicate this issue with the SASHELP.STOCKS data set and let me know if the issues shows up?
Things you'll need to provide to Tech Support or here:
1. EG (exact version)
2. SAS version (%put &Sysvlong);
3. Does it work with the sample below?
4. What output destination are you using?
5. What style are you using? Any chance a user modified their default style?
You can find the style and corresponding information under Tools>Style Manager in EG.
@Reeza, thanks for your help. When I ran it on the STOCKS data it worked fine.
Eventually I found that the values in the grouping column had a leading character (a whitespace character). When I removed the leading character, the curves were displayed correctly.
Still seems like a bug, so I will relay it to Tech Support.
Regards,
Adrian.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.
Find more tutorials on the SAS Users YouTube channel.