title: Hide the y-axis line from the bar chart using plotly() in r
body: <p>I am visualizing a horizontal bar chart using <code>plot_ly()</code>. The axis line for the x-axis is not displayed but is displayed for the y-axis. I am not sure of how to hide the axis line for a bar chart.</p>
  
  <p>The dataframe used is as follows:</p>
  
  <pre><code>df &lt;- data.frame("Grade" = c(9,10,11,12), "totalHours" = c(93,81,7,96),
                   "Count" = c(30,16,1,14), "average" = c(3.100,5.062,7.000,6.857))
  </code></pre>
  
  <p>The <code>plot_ly()</code> call used for visualizing is as follows:</p>
  
  <pre><code>plot_ly(df, x=df$average, y=df$Grade, 
          type="bar", color=~Grade, orientation = 'h') %&gt;%
    add_text(text=round(df$average), hoverinfo='none', textposition = 'auto', showlegend = FALSE,
             textfont=list(size=12, color="black")) %&gt;%
    layout(yaxis = list(showgrid = FALSE),showlegend=FALSE) 
  </code></pre>
  
  <p>Is there any solution for this?</p>