Hi there,

I am trying to picture a bar graph. However, instead of randomly selected colours I would like to colour the bars with a colour scale, for example, I would like the bars to go gradually from light red to dark red. Below I leave you the picture I got so far and the code I am using:

Code:
graph hbar valueVAFC if nsector==7 & inrange(time,2012,2018),     ///
    over(time,gap(0) lab(labsize(vsmall)))                         ///
    over(size, gap(100) lab(labsize(small)))                     ///
    ytitle("Value added at factor costs")                        ///
    yscale(titlegap(5))                                         ///
    asyvars                                                     ///
    nolab                                                         ///
    legend(rows(1) symysize(2) symxsize(5) size(2))
I would appreciate if sb could come up with an easy answer.

KR

Array