Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Different colour for a bar in a graph

    I have a (sorted) bar graph and would like one of the bars to be of a different colour. After searching and reading, I have the impression that it is not possible. For instance, in the example below, is it possible to have the bar for EU27 in red?
    input str4 country rp
    "HU" .63
    "IE" .73
    "EU27" .21 .
    "PO" .03
    "FI" .18
    end
    graph bar rp, over(country, sort(1) reverse label(angle(vertical))) blabel(total) ytitle("") bar(1, color(navy))


    Eric de Souza

  • #2
    Just one trick separates you from what you want:

    http://www.stata-journal.com/sjpdf.h...iclenum=gr0049

    Comment


    • #3
      Thanks, Nick. Will read it today.

      Comment


      • #4
        To Nick: I read your Stata tip and applied it. Problem solved. Only those who have read the tip will appreciate your play on the word "separate".

        Comment

        Working...
        X