Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit96a8e42

Browse files
committed
hovertext
1 parent6419fe2 commit96a8e42

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

‎notebooks/bar-charts.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,16 @@ jupyter:
1111
display_name:Python 3
1212
language:python
1313
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
1424
plotly:
1525
description:How to make Bar Charts in Python with Plotly.
1626
display_as:basic
@@ -139,9 +149,9 @@ import plotly.graph_objs as go
139149
x= ['Product A','Product B','Product C']
140150
y= [20,14,23]
141151

142-
# Use thetext kw argument for hover text
152+
# Use thehovertext kw argument for hover text
143153
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'])])
145155
# Customize aspect
146156
fig.update_traces(marker_color='rgb(158,202,225)',marker_line_color='rgb(8,48,107)',
147157
marker_line_width=1.5,opacity=0.6)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp