Hello,
Is it possible to do this type of chart?
Thanks,
Javier
Chart with date axis from [t-x to t+x]
Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13603
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Chart with date axis from [t-x to t+x]
There's nothing built in that will do it. You can do it with some trickery though. See below:
Code: Select all
create a 1970 2002
series NewZealand = rnd
series Australia = rnd
series Canada = rnd
series uk = rnd
'use 1989 as the base year
series Can1989 = canada
series Aus1989 = australia
series NZ1988 = newzealand(-1)
series nz1996 = newzealand(+7)
series uk1980 = uk(-9)
group g can1989 aus1989 nz1988 nz1996 uk1980
smpl 1983 1995
freeze(gr) g.line
alpha obslab = @str(@year-1989)
gr.setobslabel(series) obslab
show gr
Re: Chart with date axis from [t-x to t+x]
Interesting way of doing it. Thanks.
-
startz
- Non-normality and collinearity are NOT problems!
- Posts: 3797
- Joined: Wed Sep 17, 2008 2:25 pm
Re: Chart with date axis from [t-x to t+x]
But there should be a way to do this. Wanting to show before vs after "event" data is pretty common.
Re: Chart with date axis from [t-x to t+x]
I am almost sure that the following chart is not possible to do without manual fiddling of the date axis with addtext(s) (as I was doing with the chart types above before Gareth's stunned me with his super simple solution). It could be great if these types of double date axis charts were built into future Eviews versions.
Cheers,
Javier
Cheers,
Javier
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13603
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Chart with date axis from [t-x to t+x]
Yeah, I can't think of another way to get that double scale. If we allowed carriage returns in obs labeling, it would be easy, but we don't :(
Who is online
Users browsing this forum: No registered users and 1 guest
