datatransparency=0.2 fillattrs=(transparency=0.6)
layout overlay / cycleattrs=true xaxisopts=(display=(tickvalues)) yaxisopts=(label="Revenue" offsetmax=0.2); barchart x=year y=A_revenue / stat=sum name="A" legendlabel="A" barwidth=0.8 ; barchart x=year y=B_revenue / stat=sum name="B" legendlabel="B" barwidth=0.6 ; barchart x=year y=C_revenue / stat=sum name="C" legendlabel="C" barwidth=0.4 ; discretelegend "A" "B" "C" / title="Product:" location=inside halign=right valign=top; endlayout;
layout overlay / cycleattrs=true xaxisopts=(display=(tickvalues)) yaxisopts=(label="Revenue" offsetmax=0.2); barchart x=year y=A_revenue / stat=sum name="A" legendlabel="A" discreteoffset=-0.3 barwidth=0.3 ; barchart x=year y=B_revenue / stat=sum name="B" legendlabel="B" discreteoffset=0 barwidth=0.3 ; barchart x=year y=C_revenue / stat=sum name="C" legendlabel="C" discreteoffset=+0.3 barwidth=0.3 ; discretelegend "A" "B" "C" / title="Product:" location=inside halign=right valign=top; endlayout;
layout overlay / cycleattrs=true xaxisopts=(display=(tickvalues)) yaxisopts=(label="Revenue" offsetmax=0.2); barchart x=year y=A_revenue / stat=sum name="A" legendlabel="A" datatransparency=0.2 discreteoffset=-0.2 barwidth=0.5 ; barchart x=year y=B_revenue / stat=sum name="B" legendlabel="B" datatransparency=0.2 discreteoffset=0 barwidth=0.5 ; barchart x=year y=C_revenue / stat=sum name="C" legendlabel="C" datatransparency=0.2 discreteoffset=+0.2 barwidth=0.5 ; discretelegend "A" "B" "C" / title="Product:" location=inside halign=right valign=top; endlayout;
OUTLINE | Displays outlined bars. |
FILL | Displays bars with a solid fill. |
CONNECT | Displays line segments connecting adjacent midpoints at the end of each bar |
FILLPATTERN | Displays bars with a patterned fill. This setting is used primarily for grouped bar charts that must be rendered in monochrome for use in a journal article. The fill patterns make it easier to distinguish among groups when color is not available. |
datatransparency=0.2 fillattrs=(transparency=0.6)
layout overlay; barchart x=type y=mpg_highway / stat=mean group=origin name="b"; discretelegend "b" / title="Regions:"; endlayout;
layout overlay;
barchart x=type y=mpg_highway / barwidth=.8
target=mpg_city group=origin groupdisplay=cluster
name='bar';
discretelegend 'bar';
endlayout;