Announcement

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

  • Remove "groundline" (representing the x-axis) and gridlines in bar chart

    Hi,

    I struggle to remove the "groundline" in this bar chart, i.e. the line that represents the x-axis (yellow):
    Click image for larger version

Name:	bar.PNG
Views:	1
Size:	15.6 KB
ID:	1582307



    Also I want to remove the other gridlines but failed...

    If any body knows how to do that, any hint is much appreciated!

    Thanks,
    Fabian

    Code:
    graph hbar data, over(country, sort(data) descending) ysc(off) label(data) graphregion(color(white)) bgcolor(white) plotregion(lcolor(none))
    Last edited by Fabian Hula; 18 Nov 2020, 09:17. Reason: hbar x-axis

  • #2
    Code:
    xlabel(,nogrid) xscale(lstyle(none))

    Comment


    • #3
      Inside: over(country...., axis(noline))

      Code:
       graph hbar data, over(country, sort(data) descending axis(noline)) yl( , nogrid) ///
      ysc(off) label(data) graphregion(color(white)) bgcolor(white) plotregion(lcolor(none))
      Roman

      Comment


      • #4
        Thank you, worked beautifully.

        Comment

        Working...
        X