Announcement

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

  • Changing label's font size of horizontal axis (hbar stacked graph)

    Hi, I've been frustrated with the syntax to change the horizontal axis font size on a horizontal stacked bar.
    Here is my current syntax

    graph hbar (sum) proportion, over(classnum) over (year) percent stack asyvars ///
    scheme(white_viridis) ///
    ytitle("% of total export", size(3)) ///
    ylabel(, labsize(3)) ///
    label(labsize(small)) ///
    blabel(bar, format(%9.0f) position(center) size(2))


    It keeps showing I can't use the option label, nor xlabel, xtitle
    Could someone please help me with this simple issue? Thanks

  • #2
    If you would, please provide a small example dataset using the dataex command. Type help dataex to see the help file.

    Comment


    • #3
      With graph hbar, the horizontal axis is considered to be the y axis; therefore ylabel() is the appropriate option.

      See the help for the explanation that the other axis is considered to be a categorical axis, not an x-axis.

      Comment


      • #4
        Thank you so much Brent and Nick. That solved my confusion! Have a great day for both of you

        Comment

        Working...
        X