import barchart
class StackedBarChart(BarChart) string __module__ = 'barchart' def gen_bar(self, values, colors) def gen_legend(self) def initialize(self) def make_bar_cell(self, dict) def segment(self, value, color='blue') # Methods inherited by StackedBarChart from BarChart def __init__(self, datalist=None) def __str__(self) def color_code(self, value) def normalize(self) def pixels(self, magnitude)
Represent up to six data values in a stacked barchart.
datalist is an instance of class DataList
Generate HTML for the entire table and caption.
return a color string based on whether the given datum falls beyond thresholds. Works off self.thresholds=(low,hi).
return HTML string for the stacked bar graphic.
Return an HTML string which displays the legend for the chart.
Define StackedBarChart specific attributes.
return a TD object containing the scaled bar
Scale data to values between 0 and 400.
Determine peak value and set scale accordingly. If the values are clustered within 30% of each other, will shift the zero point for the barchart up to exagerate the value differences. To inhibit this, set the .bound_zero attribute to "yes".
returns the integer number of pixels to represent a given magnitude.
return HTML string for a bar segment given a magnitude and color.
Copyright © Robin Friedrich
All Rights Reserved
Comments to author: dev@null
Generated: Tue Apr 20, 1999