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

Function create_bullet

plotly/figure_factory/_bullet.py:182–366  ·  view source on GitHub ↗

**deprecated**, use instead the plotly.graph_objects trace :class:`plotly.graph_objects.Indicator`. :param (pd.DataFrame | list | tuple) data: either a list/tuple of dictionaries or a pandas DataFrame. :param (str) markers: the column name or dictionary key for the markers

(
    data,
    markers=None,
    measures=None,
    ranges=None,
    subtitles=None,
    titles=None,
    orientation="h",
    range_colors=("rgb(200, 200, 200)", "rgb(245, 245, 245)"),
    measure_colors=("rgb(31, 119, 180)", "rgb(176, 196, 221)"),
    horizontal_spacing=None,
    vertical_spacing=None,
    scatter_options={},
    **layout_options,
)

Source from the content-addressed store, hash-verified

180
181
182def create_bullet(
183 data,
184 markers=None,
185 measures=None,
186 ranges=None,
187 subtitles=None,
188 titles=None,
189 orientation="h",
190 range_colors=("rgb(200, 200, 200)", "rgb(245, 245, 245)"),
191 measure_colors=("rgb(31, 119, 180)", "rgb(176, 196, 221)"),
192 horizontal_spacing=None,
193 vertical_spacing=None,
194 scatter_options={},
195 **layout_options,
196):
197 """
198 **deprecated**, use instead the plotly.graph_objects trace
199 :class:`plotly.graph_objects.Indicator`.
200
201 :param (pd.DataFrame | list | tuple) data: either a list/tuple of
202 dictionaries or a pandas DataFrame.
203 :param (str) markers: the column name or dictionary key for the markers in
204 each subplot.
205 :param (str) measures: the column name or dictionary key for the measure
206 bars in each subplot. This bar usually represents the quantitative
207 measure of performance, usually a list of two values [a, b] and are
208 the blue bars in the foreground of each subplot by default.
209 :param (str) ranges: the column name or dictionary key for the qualitative
210 ranges of performance, usually a 3-item list [bad, okay, good]. They
211 correspond to the grey bars in the background of each chart.
212 :param (str) subtitles: the column name or dictionary key for the subtitle
213 of each subplot chart. The subplots are displayed right underneath
214 each title.
215 :param (str) titles: the column name or dictionary key for the main label
216 of each subplot chart.
217 :param (bool) orientation: if 'h', the bars are placed horizontally as
218 rows. If 'v' the bars are placed vertically in the chart.
219 :param (list) range_colors: a tuple of two colors between which all
220 the rectangles for the range are drawn. These rectangles are meant to
221 be qualitative indicators against which the marker and measure bars
222 are compared.
223 Default=('rgb(200, 200, 200)', 'rgb(245, 245, 245)')
224 :param (list) measure_colors: a tuple of two colors which is used to color
225 the thin quantitative bars in the bullet chart.
226 Default=('rgb(31, 119, 180)', 'rgb(176, 196, 221)')
227 :param (float) horizontal_spacing: see the 'horizontal_spacing' param in
228 plotly.tools.make_subplots. Ranges between 0 and 1.
229 :param (float) vertical_spacing: see the 'vertical_spacing' param in
230 plotly.tools.make_subplots. Ranges between 0 and 1.
231 :param (dict) scatter_options: describes attributes for the scatter trace
232 in each subplot such as name and marker size. Call
233 help(plotly.graph_objs.Scatter) for more information on valid params.
234 :param layout_options: describes attributes for the layout of the figure
235 such as title, height and width. Call help(plotly.graph_objs.Layout)
236 for more information on valid params.
237
238 Example 1: Use a Dictionary
239

Callers

nothing calls this directly

Calls 4

_bulletFunction · 0.85
tolistMethod · 0.80
transposeMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected