Package spade :: Module pygooglechart :: Class PieChart
[hide private]
[frames] | no frames]

Class PieChart

source code


Instance Methods [hide private]
 
__init__(self, *args, **kwargs)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
set_pie_labels(self, labels) source code
 
get_url_bits(self, data_class=None) source code
 
annotated_data(self) source code
 
scaled_data(self, data_class, x_range=None, y_range=None)
Scale `self.data` as appropriate for the given data encoding (data_class) and return it.
source code

Inherited from Chart: add_data, add_data_line, add_fill_range, add_fill_simple, add_horizontal_range, add_marker, add_marker_text, add_vertical_range, axis_to_url, data_class_detection, data_to_url, data_x_range, data_y_range, download, fill_linear_gradient, fill_linear_stripes, fill_solid, fill_to_url, get_url, markers_to_url, set_axis_labels, set_axis_positions, set_axis_range, set_axis_style, set_colours, set_colours_within_series, set_grid, set_legend, set_legend_position, set_line_style, set_title

Inherited from Chart (private): _check_fill_linear, _filter_none

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]

Inherited from Chart: ALPHA, BACKGROUND, BASE_URL, CHART, LINEAR_GRADIENT, LINEAR_STRIPES, SOLID, VALID_SOLID_FILL_TYPES

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, *args, **kwargs)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

get_url_bits(self, data_class=None)

source code 
Overrides: Chart.get_url_bits

annotated_data(self)

source code 
Overrides: Chart.annotated_data

scaled_data(self, data_class, x_range=None, y_range=None)

source code 

Scale `self.data` as appropriate for the given data encoding (data_class) and return it.

An optional `y_range` -- a 2-tuple (lower, upper) -- can be given to specify the y-axis bounds. If not given, the range is inferred from the data: (0, <max-value>) presuming no negative values, or (<min-value>, <max-value>) if there are negative values. `self.scaled_y_range` is set to the actual lower and upper scaling range.

Ditto for `x_range`. Note that some chart types don't have x-axis data.

Overrides: Chart.scaled_data
(inherited documentation)