Description

Bar charts in pure HTML and CSS.

baciphacs will use basic HTML code with some bits of CSS style embeded in tags, to display a reasonably readable chart.

Examples

Horizontal Bar Charts

The following code will produce the horizontal bar charts visible below.

from baciphacs import DataSample
from baciphacs import GenerateHTMLHorizontalBarChart

data = [("ba",3,2),("c",6,1),("i",2,1),("p",4,1),("h",4,1),("a",3,1),("cs",3,2)]
dataSamples = [DataSample._make(t) for t in data]
print GenerateHTMLHorizontalBarChart(dataSamples,numStdev=2,color="blue")
ba
| |
c
| |
i
| |
p
| |
h
| |
a
| |
cs
| |