We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent6419fe2 commit96a8e42Copy full SHA for 96a8e42
notebooks/bar-charts.md
@@ -11,6 +11,16 @@ jupyter:
11
display_name:Python 3
12
language:python
13
name:python3
14
+language_info:
15
+codemirror_mode:
16
+name:ipython
17
+version:3
18
+file_extension:.py
19
+mimetype:text/x-python
20
+name:python
21
+nbconvert_exporter:python
22
+pygments_lexer:ipython3
23
+version:3.6.7
24
plotly:
25
description:How to make Bar Charts in Python with Plotly.
26
display_as:basic
@@ -139,9 +149,9 @@ import plotly.graph_objs as go
139
149
x= ['Product A','Product B','Product C']
140
150
y= [20,14,23]
141
151
142
-# Use thetext kw argument for hover text
152
+# Use thehovertext kw argument for hover text
143
153
fig= go.Figure(data=[go.Bar(x=x,y=y,
144
-text=['27% market share','24% market share','19% market share'])])
154
+hovertext=['27% market share','24% market share','19% market share'])])
145
155
# Customize aspect
146
156
fig.update_traces(marker_color='rgb(158,202,225)',marker_line_color='rgb(8,48,107)',
147
157
marker_line_width=1.5,opacity=0.6)