Announcement

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

  • inserting labels into the bar charts- code runs but not labels!


    hello, I'm trying to insert the labels onto the bars of the bar charts using this code

    Code:
    graph bar (percent) if failure==1 & procedure==1, over(reason) over(gender) asyvars name(m1, replace) ytick(0(1)20) ylabel(0(1)20) title("Percentage (%)") blab(total,position(inside)format("3.0")) note ("Reasons for failure")
    This gives me the graph without the labels, which I don't understand as I've used this code before and produced nice labels ontop of the bar charts

    Pls let me know what I'm doing wrong

    many thanks




  • #2
    Let's see a data example please:


    Code:
    dataex reason gender if failure==1 & procedure==1

    Comment

    Working...
    X