MCPcopy Index your code
hub / github.com/bqplot/bqplot / Pie

Class Pie

bqplot/marks.py:1345–1440  ·  view source on GitHub ↗

Piechart mark. Data Attributes --------------- Attributes ---------- sizes: numpy.ndarray (default: []) proportions of the pie slices color: numpy.ndarray or None (default: None) color of the data points. Defaults to colors when not provided. Style Attr

Source from the content-addressed store, hash-verified

1343
1344@register_mark('bqplot.Pie')
1345class Pie(Mark):
1346
1347 """Piechart mark.
1348
1349 Data Attributes
1350 ---------------
1351
1352 Attributes
1353 ----------
1354 sizes: numpy.ndarray (default: [])
1355 proportions of the pie slices
1356 color: numpy.ndarray or None (default: None)
1357 color of the data points. Defaults to colors when not provided.
1358
1359 Style Attributes
1360 ----------------
1361
1362 Attributes
1363 ----------
1364 colors: list of colors (default: CATEGORY10)
1365 list of colors for the slices.
1366 stroke: color (default: 'white')
1367 stroke color for the marker
1368 opacities: list of floats (default: [])
1369 Opacities for the slices of the Pie mark. Defaults to 1 when the list
1370 is too short, or the element of the list is set to None.
1371 sort: bool (default: False)
1372 sort the pie slices by descending sizes
1373 x: Float (default: 0.5) or Date
1374 horizontal position of the pie center, in data coordinates or in figure
1375 coordinates
1376 y: Float (default: 0.5)
1377 vertical y position of the pie center, in data coordinates or in figure
1378 coordinates
1379 radius: Float
1380 radius of the pie, in pixels
1381 inner_radius: Float
1382 inner radius of the pie, in pixels
1383 start_angle: Float (default: 0.0)
1384 start angle of the pie (from top), in degrees
1385 end_angle: Float (default: 360.0)
1386 end angle of the pie (from top), in degrees
1387 display_labels: {'none', 'inside', 'outside'} (default: 'inside')
1388 label display options
1389 display_values: bool (default: False)
1390 if True show values along with labels
1391 values_format: string (default: '.2f')
1392 format for displaying values
1393 label_color: Color or None (default: None)
1394 color of the labels
1395 font_size: string (default: '14px')
1396 label font size in px, em or ex
1397 font_weight: {'bold', 'normal', 'bolder'} (default: 'normal')
1398 label font weight
1399 """
1400 # Mark decoration
1401 icon = 'fa-pie-chart'
1402 name = 'Pie chart'

Callers

nothing calls this directly

Calls 2

array_dimension_boundsFunction · 0.85
DateClass · 0.85

Tested by

no test coverage detected