MCPcopy Index your code
hub / github.com/plotly/plotly.py / text

Method text

plotly/graph_objs/_bar.py:963–981  ·  view source on GitHub ↗

Sets text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. If trace `hoverinfo` contains a "text" flag a

(self)

Source from the content-addressed store, hash-verified

961
962 @property
963 def text(self):
964 """
965 Sets text elements associated with each (x,y) pair. If a single
966 string, the same string appears over all the data points. If an
967 array of string, the items are mapped in order to the this
968 trace's (x,y) coordinates. If trace `hoverinfo` contains a
969 "text" flag and "hovertext" is not set, these elements will be
970 seen in the hover labels.
971
972 The 'text' property is a string and must be specified as:
973 - A string
974 - A number that will be converted to a string
975 - A tuple, list, or one-dimensional numpy array of the above
976
977 Returns
978 -------
979 str|numpy.ndarray
980 """
981 return self["text"]
982
983 @text.setter
984 def text(self, val):

Callers 15

test_textFunction · 0.45
_rFunction · 0.45
"src/lib/notifier.js"Function · 0.45
"src/plots/plots.js"Function · 0.45
MFunction · 0.45
leFunction · 0.45
qFunction · 0.45
feFunction · 0.45
mFunction · 0.45
qtFunction · 0.45

Calls

no outgoing calls

Tested by 3

test_textFunction · 0.36
itFunction · 0.36
test_annotationsFunction · 0.36