Draws a Pie in the current context figure. Parameters ---------- sizes: numpy.ndarray, 1d The proportions to be represented by the Pie. options: dict (default: {}) Options for the scales to be created. If a scale labeled 'x' is required for that mark, options
(sizes, **kwargs)
| 934 | |
| 935 | @_process_data('color') |
| 936 | def pie(sizes, **kwargs): |
| 937 | """Draws a Pie in the current context figure. |
| 938 | |
| 939 | Parameters |
| 940 | ---------- |
| 941 | sizes: numpy.ndarray, 1d |
| 942 | The proportions to be represented by the Pie. |
| 943 | options: dict (default: {}) |
| 944 | Options for the scales to be created. If a scale labeled 'x' is |
| 945 | required for that mark, options['x'] contains optional keyword |
| 946 | arguments for the constructor of the corresponding scale type. |
| 947 | axes_options: dict (default: {}) |
| 948 | Options for the axes to be created. If an axis labeled 'x' is required |
| 949 | for that mark, axes_options['x'] contains optional keyword arguments |
| 950 | for the constructor of the corresponding axis type. |
| 951 | """ |
| 952 | kwargs['sizes'] = sizes |
| 953 | return _draw_mark(Pie, **kwargs) |
| 954 | |
| 955 | |
| 956 | def label(text, **kwargs): |
nothing calls this directly
no test coverage detected