App Engine Python SDK  v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
Public Member Functions | Public Attributes | Properties | List of all members
google.appengine._internal.graphy.common.DataSeries Class Reference
Inheritance diagram for google.appengine._internal.graphy.common.DataSeries:
google.appengine._internal.graphy.pie_chart.Segment

Public Member Functions

def __init__
 

Public Attributes

 data
 
 style
 
 markers
 
 label
 

Properties

 color = property(_GetColor, _SetColor)
 

Detailed Description

Represents one data series for a chart (both data & presentation
information).

Object attributes:
  points:  List of numbers representing y-values (x-values are not specified
           because the Google Chart API expects even x-value spacing).
  label:   String with the series' label in the legend.  The chart will only
           have a legend if at least one series has a label.  If some series
           do not have a label then they will have an empty description in
           the legend.  This is currently a limitation in the Google Chart
           API.
  style:   A chart-type-specific style object.  (LineStyle for LineChart,
           BarsStyle for BarChart, etc.)
  markers: List of (x, m) tuples where m is a Marker object and x is the
           x-axis value to place it at.

           The "fill" markers ('r' & 'b') are a little weird because they
           aren't a point on a line.  For these, you can fake it by
           passing slightly weird data (I'd like a better API for them at
           some point):
             For 'b', you attach the marker to the starting series, and set x
             to the index of the ending line.  Size is ignored, I think.

             For 'r', you can attach to any line, specify the starting
             y-value for x and the ending y-value for size.  Y, in this case,
             is becase 0.0 (bottom) and 1.0 (top).
  color:   DEPRECATED

Constructor & Destructor Documentation

def google.appengine._internal.graphy.common.DataSeries.__init__ (   self,
  points,
  label = None,
  style = None,
  markers = None,
  color = None 
)
Construct a DataSeries.  See class docstring for details on args.

The documentation for this class was generated from the following file: