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

Public Member Functions

def __init__
 
def __call__
 

Public Attributes

 buffer
 

Detailed Description

If you don't set min/max on the dependent axes, this fills them in
automatically by calculating min/max dynamically from the data.

You can set just min or just max and this formatter will fill in the other
value for you automatically.  For example, if you only set min then this will
set max automatically, but leave min untouched.

Charts can have multiple dependent axes (chart.left & chart.right, for
example.)  If you set min/max on some axes but not others, then this formatter
copies your min/max to the un-set axes.  For example, if you set up min/max on
only the right axis then your values will be automatically copied to the left
axis.  (if you use different min/max values for different axes, the
precendence is undefined.  So don't do that.)

Constructor & Destructor Documentation

def google.appengine._internal.graphy.formatters.AutoScale.__init__ (   self,
  buffer = 0.05 
)
Create a new AutoScale formatter.

Args:
  buffer: percentage of extra space to allocate around the chart's axes.

Member Function Documentation

def google.appengine._internal.graphy.formatters.AutoScale.__call__ (   self,
  chart 
)
Format the chart by setting the min/max values on its dependent axis.

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