Our company uses Eviews graphs both for internal use and external publication and powerpointpresentations. We use emf-images because they provide a sharper image.
In Eviews 12 the graph looks fine.
In Eviews 13, however, there has been something wrong with the positioning of the various elements. The text in the header and subheader appears too dense, the chart area extends over the left x-axis, and the labels end up too far to the left and overlap the label lines.
See the attached pdf-file and code if you want to test it yourself.
Best regards Johan
Code: Select all
WfCreate(page=Q) Q 2019q4 2023q4
Call Data
%p = @LinePath
!ver = @VerNum
PageSelect Q
Group group1 n*
Freeze(G1) group1.mixed line(1) line(2) line(3) line(4)
G1.name(1) Business sector
G1.name(2) Manufacturing industry
G1.name(3) Service sector
G1.name(4) Construction industry
G1.addtext(0, -0.65,Just(L),textcolor(@rgb(40, 40, 40)),Font(Verdana,18,B))Productivity
G1.addtext(0, -0.35,Just(L),textcolor(@rgb(40, 40, 40)),Font(Verdana,16))Index 2019Q4 = 100
G1.axis(b) -minor
G1.axis(b) angle(0)
G1.axis(b) font(verdana,16)
G1.axis(l) range(85,115)
G1.axis(l) mirror format(commadec, -ksep, leadzero)
G1.axis(l) font(Verdana, 16)
G1.axis(r) mirror format(commadec, -ksep, leadzero)
G1.axis(r) font(Verdana, 16)
G1.axis dual
G1.datelabel format(YYYY)
G1.options size(7.36,4.6)
G1.options linepat
G1.options -barspace
G1.options backfade(none) fillfade(none) backcolor(white) framecolor(white) -background
G1.options backfade(none) fillfade(none) backcolor(white) framecolor(@rgb(128,128,128)) -background
G1.setfont legend(verdana, 16)
G1.legend display
G1.legend position(bl) font(verdana, 16) -inbox columns(1)
G1.options gridnone
G1.options gridl gridpat(dash6) gridcolor(gray) gridwidth(0.5) -gridontop
G1.setelem(1) linewidth(2) linepattern(1) linecolor(@Rgb(0, 112, 158)) fillcolor(@Rgb(0, 112, 158)) fillhatch(1)
G1.setelem(2) linewidth(2) linepattern(1) linecolor(@Rgb(247, 73, 2)) fillcolor(@Rgb(247, 73, 2)) fillhatch(1)
G1.setelem(3) linewidth(2) linepattern(1) linecolor(@Rgb(112, 147, 2)) fillcolor(@Rgb(112, 147, 2)) fillhatch(1)
G1.setelem(4) linewidth(2) linepattern(1) linecolor(@Rgb(132, 33, 107))fillcolor(@Rgb(132, 33, 107)) fillhatch(1)
G1.save(t=Emf, u=cm, w=22.08, h=13.8, trans) {%p}graph_{!ver}
G1.save(t=Jpeg, u=cm, w=22.08, h=13.8, -trans, d=600) {%p}graph_{!ver}
'_____________________________________________________________________________________
Subroutine data
Series Nprtjvebpfsi
Series Nprnbpfsi
Series Nprindubpfsi
Series Nprbyggbpfsi
Nprtjvebpfsi.Fill 100.00, 100.65, 100.77, 105.33, 103.56, 102.47, 104.42, 105.46, 106.31, 107.09, 107.10, 106.39, 105.27, 104.62, 104.48, 104.35, 104.40
Nprnbpfsi.Fill 100.00, 101.48, 99.43, 106.25, 103.78, 103.12, 105.03, 106.06, 106.43, 106.72, 106.60, 106.25, 105.39, 104.92, 104.84, 104.80, 104.92
Nprindubpfsi.Fill 100.00, 104.17, 88.92, 110.85, 106.11, 104.02, 105.21, 108.05, 107.23, 106.75, 104.32, 105.05, 104.41, 104.62, 104.73, 104.94, 105.25
Nprbyggbpfsi.Fill 100.00, 101.90, 107.83, 108.29, 101.10, 101.51, 103.39, 104.53, 105.11, 104.57, 104.47, 104.79, 105.11, 104.58, 104.79, 105.00, 105.32
EndSub