/usr/share/doc/python-htmlgen/html/barchart-StackedBarChart.html is in python-htmlgen 2.2.2-12.3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<!-- This file generated using Python HTMLgen module. -->
<HEAD>
<META NAME="GENERATOR" CONTENT="HTMLgen 2.2.2">
<TITLE>Class StackedBarChart</TITLE>
<LINK rel=stylesheet href="HTMLgen.css" type=text/css title="HTMLgen.css">
</HEAD>
<BODY BGCOLOR="#FFFFFF" BACKGROUND="../image/bg-dots.gif" TEXT="#000000" LINK="#EE0000" VLINK="#990000">
<A HREF="barchart-DataList.html"><IMG src="../image/back.gif" height="22" width="66" alt="Previous" border="0"></A>
<IMG src="../image/blank.gif" height="22" width="66" alt="blank.gif">
<IMG src="../image/blank.gif" height="22" width="66" alt="blank.gif">
<IMG src="../image/blank.gif" height="22" width="66" alt="blank.gif">
<H3>Class StackedBarChart</H3>
<HR>
<H2>SYNOPSIS</H2>
<PRE>import barchart</PRE>
<PRE>class StackedBarChart(BarChart)
string __module__ = 'barchart'
<A HREF="#def gen_bar(self, values, colors)">def gen_bar(self, values, colors)</A>
<A HREF="#def gen_legend(self)">def gen_legend(self)</A>
<A HREF="#def initialize(self)">def initialize(self)</A>
<A HREF="#def make_bar_cell(self, dict)">def make_bar_cell(self, dict)</A>
<A HREF="#def segment(self, value, color='blue')">def segment(self, value, color='blue')</A>
# Methods inherited by StackedBarChart from BarChart
<A HREF="#def __init__(self, datalist=None)">def __init__(self, datalist=None)</A>
<A HREF="#def __str__(self)">def __str__(self)</A>
<A HREF="#def color_code(self, value)">def color_code(self, value)</A>
<A HREF="#def normalize(self)">def normalize(self)</A>
<A HREF="#def pixels(self, magnitude)">def pixels(self, magnitude)</A>
</PRE>
<H2>DESCRIPTION</H2>
<P>Represent up to six data values in a stacked barchart.
</P>
<H3><A NAME="def __init__(self, datalist=None)">def __init__(self, datalist=None)</A></H3>
<P>datalist is an instance of class DataList</P>
<H3><A NAME="def __str__(self)">def __str__(self)</A></H3>
<P>Generate HTML for the entire table and caption.
</P>
<H3><A NAME="def color_code(self, value)">def color_code(self, value)</A></H3>
<P>return a color string based on whether the given datum
falls beyond thresholds. Works off self.thresholds=(low,hi).
</P>
<H3><A NAME="def gen_bar(self, values, colors)">def gen_bar(self, values, colors)</A></H3>
<P>return HTML string for the stacked bar graphic.
</P>
<H3><A NAME="def gen_legend(self)">def gen_legend(self)</A></H3>
<P>Return an HTML string which displays the legend for the chart.
</P>
<H3><A NAME="def initialize(self)">def initialize(self)</A></H3>
<P>Define StackedBarChart specific attributes.
</P>
<H3><A NAME="def make_bar_cell(self, dict)">def make_bar_cell(self, dict)</A></H3>
<P>return a TD object containing the scaled bar
</P>
<H3><A NAME="def normalize(self)">def normalize(self)</A></H3>
<P>Scale data to values between 0 and 400.</P>
<P>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".
</P>
<H3><A NAME="def pixels(self, magnitude)">def pixels(self, magnitude)</A></H3>
<P>returns the integer number of pixels to represent a given magnitude.
</P>
<H3><A NAME="def segment(self, value, color='blue')">def segment(self, value, color='blue')</A></H3>
<P>return HTML string for a bar segment given a magnitude and color.
</P>
<H2>SEE ALSO</H2>
<P><A HREF="barchart_overview.html">barchart</A></P>
<P><A HREF="barchart-BarChart.html">BarChart</A></P>
<P><HR>
<A HREF="barchart-DataList.html"><IMG src="../image/back.gif" height="22" width="66" alt="Previous" border="0"></A>
<IMG src="../image/blank.gif" height="22" width="66" alt="blank.gif">
<IMG src="../image/blank.gif" height="22" width="66" alt="blank.gif">
<IMG src="../image/blank.gif" height="22" width="66" alt="blank.gif">
<BR><IMG src="../image/Buzz.gif" height="51" width="56" alt="Buzz.gif" align="bottom">
<FONT SIZE="-1"><P>Copyright © Robin Friedrich<BR>All Rights Reserved<BR>
Comments to author: <A HREF="mailto:dev@null">dev@null</A><br>
Generated: Tue Apr 20, 1999 <BR><hr>
</FONT>
</BODY> </HTML>
|