![]() |
App Engine Python SDK
v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
|
Public Member Functions | |
def | __init__ |
def | AddPie |
def | AddSegments |
def | AddSegment |
def | AddSeries |
def | SetColors |
![]() | |
def | __init__ |
def | AddFormatter |
def | AddSeries |
def | GetDependentAxes |
def | GetIndependentAxes |
def | GetDependentAxis |
def | GetIndependentAxis |
def | GetFormattedChart |
def | GetMinMaxValues |
def | AddAxis |
def | GetAxis |
def | SetAxis |
Public Attributes | |
formatters | |
![]() | |
data | |
auto_color | |
auto_scale | |
auto_legend | |
formatters | |
display | |
Additional Inherited Members | |
![]() | |
bottom | |
left | |
right | |
top | |
Represents a pie chart. The pie chart consists of a single "pie" by default, but additional pies may be added using the AddPie method. The Google Chart API will display the pies as concentric circles, with pie #0 on the inside; other backends may display the pies differently.
def google.appengine._internal.graphy.pie_chart.PieChart.__init__ | ( | self, | |
points = None , |
|||
labels = None , |
|||
colors = None |
|||
) |
Constructor for PieChart objects. Creates a pie chart with a single pie. Args: points: A list of data points for the pie chart; i.e., relative sizes of the pie segments labels: A list of labels for the pie segments. TODO: Allow the user to pass in None as one of the labels in order to skip that label. colors: A list of colors for the pie segments, as hex strings (f.ex. '0000ff' for blue). If there are less colors than pie segments, the Google Chart API will attempt to produce a smooth color transition between segments by spreading the colors across them.
def google.appengine._internal.graphy.pie_chart.PieChart.AddPie | ( | self, | |
points, | |||
labels = None , |
|||
colors = None |
|||
) |
Add a whole pie to the chart. Args: points: A list of pie segment sizes labels: A list of labels for the pie segments colors: A list of colors for the segments. Missing colors will be chosen automatically. Return: The index of the newly added pie.
def google.appengine._internal.graphy.pie_chart.PieChart.AddSegment | ( | self, | |
size, | |||
label = None , |
|||
color = None , |
|||
pie_index = 0 |
|||
) |
Add a pie segment to this chart, and return the segment. size: The size of the segment. label: The label for the segment. color: The color of the segment, or None to automatically choose the color. pie_index: The index of the pie that will receive the new segment. By default, the chart has one pie (pie #0); use the AddPie method to add more pies.
def google.appengine._internal.graphy.pie_chart.PieChart.AddSegments | ( | self, | |
points, | |||
labels, | |||
colors | |||
) |
DEPRECATED.
def google.appengine._internal.graphy.pie_chart.PieChart.AddSeries | ( | self, | |
points, | |||
color = None , |
|||
style = None , |
|||
markers = None , |
|||
label = None |
|||
) |
DEPRECATED Add a new segment to the chart and return it. The segment must contain exactly one data point; all parameters other than color and label are ignored.
def google.appengine._internal.graphy.pie_chart.PieChart.SetColors | ( | self, | |
colors | |||
) |
Change the colors of this chart to the specified list of colors. Note that this will completely override the individual colors specified in the pie segments. Missing colors will be interpolated, so that the list of colors covers all segments in all the pies.