|
|
@ -6,6 +6,7 @@ __all__ = ('Plot', 'TimeSeries', 'Bar', 'Pie', 'Schedule') |
|
|
|
from xml.dom import minidom as dom |
|
|
|
from xml.dom import minidom as dom |
|
|
|
from operator import itemgetter |
|
|
|
from operator import itemgetter |
|
|
|
from itertools import islice |
|
|
|
from itertools import islice |
|
|
|
|
|
|
|
from cssutils import css, stylesheets |
|
|
|
|
|
|
|
|
|
|
|
try: |
|
|
|
try: |
|
|
|
import zlib |
|
|
|
import zlib |
|
|
@ -651,6 +652,12 @@ Copyright © 2008 Jason R. Coombs |
|
|
|
self.graph_height = self.height - self.border_top - self.border_bottom |
|
|
|
self.graph_height = self.height - self.border_top - self.border_bottom |
|
|
|
|
|
|
|
|
|
|
|
def get_style(self): |
|
|
|
def get_style(self): |
|
|
|
|
|
|
|
sheet = css.CSSStyleSheet() |
|
|
|
|
|
|
|
master_bg_style = css.CSSStyleDeclaration() |
|
|
|
|
|
|
|
master_bg_style.setProperty('fill', '#ffffff') |
|
|
|
|
|
|
|
rule = css.CSSStyleRule(selectorText=u'.svgBackground', style=master_bg_style) |
|
|
|
|
|
|
|
sheet.insertRule(rule) |
|
|
|
|
|
|
|
result = sheet.cssText |
|
|
|
result = """/* Copy from here for external style sheet */ |
|
|
|
result = """/* Copy from here for external style sheet */ |
|
|
|
.svgBackground{ |
|
|
|
.svgBackground{ |
|
|
|
fill:#ffffff; |
|
|
|
fill:#ffffff; |
|
|
|