Skip to content

Commit

Permalink
Removes stupid \r + adjust margins for rotation
Browse files Browse the repository at this point in the history
  • Loading branch information
paradoxxxzero committed Sep 28, 2011
1 parent f696dc0 commit 9a0e2f5
Show file tree
Hide file tree
Showing 17 changed files with 2,750 additions and 2,751 deletions.
16 changes: 8 additions & 8 deletions pygal/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!python
# -*- coding: utf-8 -*-

"""
pygal package.
"""

__all__ = ('graph', 'plot', 'time_series', 'bar', 'pie', 'schedule', 'util')
#!python
# -*- coding: utf-8 -*-

"""
pygal package.
"""

__all__ = ('graph', 'plot', 'time_series', 'bar', 'pie', 'schedule', 'util')
136 changes: 68 additions & 68 deletions pygal/bar.css
Original file line number Diff line number Diff line change
@@ -1,68 +1,68 @@
.bar .dataPointLabel {
fill-opacity: 0;
-webkit-transition: 250ms;
}

.bar:hover .dataPointLabel {
fill-opacity: 0.9;
fill: #000000;
}

.key, .fill {
fill-opacity: 0.5;
stroke: none;
stroke-width: 1px;
-webkit-transition: 250ms;
}

.fill:hover {
fill-opacity: 0.25;
}

.key1, .fill1 {
fill: #ff0000;
}

.key2, .fill2 {
fill: #0000ff;
}

.key3, .fill3 {
fill: #00ff00;
}

.key4, .fill4 {
fill: #ffcc00;
}

.key5, .fill5 {
fill: #00ccff;
}

.key6, .fill6 {
fill: #ff00ff;
}

.key7, .fill7 {
fill: #00ffff;
}

.key8, .fill8 {
fill: #ffff00;
}

.key9, .fill9 {
fill: #cc6666;
}

.key10, .fill10 {
fill: #663399;
}

.key11, .fill11 {
fill: #339900;
}

.key12, .fill12 {
fill: #9966FF;
}
.bar .dataPointLabel {
fill-opacity: 0;
-webkit-transition: 250ms;
}

.bar:hover .dataPointLabel {
fill-opacity: 0.9;
fill: #000000;
}

.key, .fill {
fill-opacity: 0.5;
stroke: none;
stroke-width: 1px;
-webkit-transition: 250ms;
}

.fill:hover {
fill-opacity: 0.25;
}

.key1, .fill1 {
fill: #ff0000;
}

.key2, .fill2 {
fill: #0000ff;
}

.key3, .fill3 {
fill: #00ff00;
}

.key4, .fill4 {
fill: #ffcc00;
}

.key5, .fill5 {
fill: #00ccff;
}

.key6, .fill6 {
fill: #ff00ff;
}

.key7, .fill7 {
fill: #00ffff;
}

.key8, .fill8 {
fill: #ffff00;
}

.key9, .fill9 {
fill: #cc6666;
}

.key10, .fill10 {
fill: #663399;
}

.key11, .fill11 {
fill: #339900;
}

.key12, .fill12 {
fill: #9966FF;
}
164 changes: 82 additions & 82 deletions pygal/css.py
Original file line number Diff line number Diff line change
@@ -1,82 +1,82 @@
import cssutils

SVG = 'SVG 1.1' # http://www.w3.org/TR/SVG11/styling.html

macros = {
'paint': 'none|currentColor|{color}',
'unitidentifier': 'em|ex|px|pt|pc|cm|mm|in|%',
'length': '{positivenum}({unitidentifier})?',
'dasharray': '{positivenum}(\s*,\s*{positivenum})*',
# a number greater-than or equal to one
'number-ge-one': '{[1-9][0-9]*(\.[0-9]+)?',
}
properties = {
# Clipping, Masking, and Compositing
'clip-path': '{uri}|none|inherit',
'clip-rule': 'nonzero|evenodd|inherit',
'mask': '{uri}|none|inherit',
'opacity': '{num}|inherit',

# Filter Effects
'enable-background': 'accumulate|new(\s+{num}){0,4}|inherit',
'filter': '{uri}|none|inherit',
'flood-color': 'currentColor|{color}|inherit',
'flood-opacity': '{num}|inherit',
'lighting-color': 'currentColor|{color}|inherit',

# Gradient Properties
'stop-color': 'currentColor|{color}|inherit',
'stop-opacity': '{num}|inherit',

# Interactivity Properties
'pointer-events': ('visiblePainted|visibleFill|visibleStroke'
'|visible|painted|fill|stroke|all|none|inherit'),

# Color and Pointing Properties
'color-interpolation': 'auto|sRGB|linearRGB|inherit',
'color-interpolation-filters': 'auto|sRGB|linearRGB|inherit',
'color-rendering': 'auto|optimizeSpeed|optimizeQuality|inherit',
'shape-rendering': ('auto|optimizeSpeed|crispEdges|'
'geometricPrecision|inherit'),
'text-rendering': ('auto|optimizeSpeed|optimizeLegibility'
'|geometricPrecision|inherit'),
'fill': '{paint}',
'fill-opacity': '{num}|inherit',
'fill-rule': 'nonzero|evenodd|inherit',
'image-rendering': 'auto|optimizeSpeed|optimizeQuality|inherit',
'marker': 'none|inherit|{uri}',
'marker-end': 'none|inherit|{uri}',
'marker-mid': 'none|inherit|{uri}',
'marker-start': 'none|inherit|{uri}',
'shape-rendering': ('auto|optimizeSpeed|crispEdges|'
'geometricPrecision|inherit'),
'stroke': '{paint}',
'stroke-dasharray': 'none|{dasharray}|inherit',
'stroke-dashoffset': '{length}|inherit',
'stroke-linecap': 'butt|round|square|inherit',
'stroke-linejoin': 'miter|round|bevel|inherit',
'stroke-miterlimit': '{number-ge-one}|inherit',
'stroke-opacity': '{num}|inherit',
'stroke-width': '{length}|inherit',
'text-rendering': ('auto|optimizeSpeed|optimizeLegibility'
'|geometricPrecision|inherit'),

# Text Properties
'alignment-baseline': ('auto|baseline|before-edge|text-before-edge|'
'middle|central|after-edge|text-after-edge|'
'ideographic|alphabetic|hanging|mathematical'
'|inherit'),
'baseline-shift': 'baseline|sub|super|{percentage}|{length}|inherit',
'dominant-baseline': ('auto|use-script|no-change|reset-size|ideographic|'
'alphabetic|hanging||mathematical|central|middle|'
'text-after-edge|text-before-edge|inherit'),
'glyph-orientation-horizontal': '{angle}|inherit',
'glyph-orientation-vertical': 'auto|{angle}|inherit',
'kerning': 'auto|{length}|inherit',
'text-anchor': 'start|middle|end|inherit',
'writing-mode': 'lr-tb|rl-tb|tb-rl|lr|rl|tb|inherit',
}

cssutils.profile.addProfile(SVG, properties, macros)

cssutils.profile.defaultProfiles = [SVG, cssutils.profile.CSS_LEVEL_2]
import cssutils

SVG = 'SVG 1.1' # http://www.w3.org/TR/SVG11/styling.html

macros = {
'paint': 'none|currentColor|{color}',
'unitidentifier': 'em|ex|px|pt|pc|cm|mm|in|%',
'length': '{positivenum}({unitidentifier})?',
'dasharray': '{positivenum}(\s*,\s*{positivenum})*',
# a number greater-than or equal to one
'number-ge-one': '{[1-9][0-9]*(\.[0-9]+)?',
}
properties = {
# Clipping, Masking, and Compositing
'clip-path': '{uri}|none|inherit',
'clip-rule': 'nonzero|evenodd|inherit',
'mask': '{uri}|none|inherit',
'opacity': '{num}|inherit',

# Filter Effects
'enable-background': 'accumulate|new(\s+{num}){0,4}|inherit',
'filter': '{uri}|none|inherit',
'flood-color': 'currentColor|{color}|inherit',
'flood-opacity': '{num}|inherit',
'lighting-color': 'currentColor|{color}|inherit',

# Gradient Properties
'stop-color': 'currentColor|{color}|inherit',
'stop-opacity': '{num}|inherit',

# Interactivity Properties
'pointer-events': ('visiblePainted|visibleFill|visibleStroke'
'|visible|painted|fill|stroke|all|none|inherit'),

# Color and Pointing Properties
'color-interpolation': 'auto|sRGB|linearRGB|inherit',
'color-interpolation-filters': 'auto|sRGB|linearRGB|inherit',
'color-rendering': 'auto|optimizeSpeed|optimizeQuality|inherit',
'shape-rendering': ('auto|optimizeSpeed|crispEdges|'
'geometricPrecision|inherit'),
'text-rendering': ('auto|optimizeSpeed|optimizeLegibility'
'|geometricPrecision|inherit'),
'fill': '{paint}',
'fill-opacity': '{num}|inherit',
'fill-rule': 'nonzero|evenodd|inherit',
'image-rendering': 'auto|optimizeSpeed|optimizeQuality|inherit',
'marker': 'none|inherit|{uri}',
'marker-end': 'none|inherit|{uri}',
'marker-mid': 'none|inherit|{uri}',
'marker-start': 'none|inherit|{uri}',
'shape-rendering': ('auto|optimizeSpeed|crispEdges|'
'geometricPrecision|inherit'),
'stroke': '{paint}',
'stroke-dasharray': 'none|{dasharray}|inherit',
'stroke-dashoffset': '{length}|inherit',
'stroke-linecap': 'butt|round|square|inherit',
'stroke-linejoin': 'miter|round|bevel|inherit',
'stroke-miterlimit': '{number-ge-one}|inherit',
'stroke-opacity': '{num}|inherit',
'stroke-width': '{length}|inherit',
'text-rendering': ('auto|optimizeSpeed|optimizeLegibility'
'|geometricPrecision|inherit'),

# Text Properties
'alignment-baseline': ('auto|baseline|before-edge|text-before-edge|'
'middle|central|after-edge|text-after-edge|'
'ideographic|alphabetic|hanging|mathematical'
'|inherit'),
'baseline-shift': 'baseline|sub|super|{percentage}|{length}|inherit',
'dominant-baseline': ('auto|use-script|no-change|reset-size|ideographic|'
'alphabetic|hanging||mathematical|central|middle|'
'text-after-edge|text-before-edge|inherit'),
'glyph-orientation-horizontal': '{angle}|inherit',
'glyph-orientation-vertical': 'auto|{angle}|inherit',
'kerning': 'auto|{length}|inherit',
'text-anchor': 'start|middle|end|inherit',
'writing-mode': 'lr-tb|rl-tb|tb-rl|lr|rl|tb|inherit',
}

cssutils.profile.addProfile(SVG, properties, macros)

cssutils.profile.defaultProfiles = [SVG, cssutils.profile.CSS_LEVEL_2]
Loading

0 comments on commit 9a0e2f5

Please sign in to comment.