pygal.style module¶
Charts styling classes
- class pygal.style.BlueStyle(**kwargs)[source]¶
Bases:
StyleA blue style
- background = '#f0f0f0'¶
- colors = ('#00b2f0', '#43d9be', '#0662ab', '#00668a', '#98eadb', '#97d959', '#033861', '#ffd541', '#7dcf30', '#3ecdff', '#daaa00')¶
- foreground = 'rgba(0, 0, 0, 0.9)'¶
- foreground_strong = 'rgba(0, 0, 0, 0.9)'¶
- foreground_subtle = 'rgba(0, 0, 0, 0.6)'¶
- opacity = '.5'¶
- opacity_hover = '.9'¶
- plot_background = '#f8f8f8'¶
- transition = '250ms ease-in'¶
- class pygal.style.CleanStyle(**kwargs)[source]¶
Bases:
StyleA rather clean style
- background = 'transparent'¶
- colors = ('rgb(12,55,149)', 'rgb(117,38,65)', 'rgb(228,127,0)', 'rgb(159,170,0)', 'rgb(149,12,12)')¶
- foreground = 'rgba(0, 0, 0, 0.9)'¶
- foreground_strong = 'rgba(0, 0, 0, 0.9)'¶
- foreground_subtle = 'rgba(0, 0, 0, 0.5)'¶
- plot_background = 'rgba(240, 240, 240, 0.7)'¶
- class pygal.style.DarkColorizedStyle(**kwargs)[source]¶
Bases:
StyleA dark colorized style
- background = '#2c2230'¶
- colors = ('#c900fe', '#01b8fe', '#59f500', '#ff00e4', '#f9fa00', '#780098', '#0181b2', '#348f00', '#b200a0', '#feff61')¶
- foreground = 'rgba(255, 255, 255, 0.9)'¶
- foreground_strong = 'rgba(255, 255, 255, 0.9)'¶
- foreground_subtle = 'rgba(255, 255 , 255, 0.5)'¶
- opacity = '.2'¶
- opacity_hover = '.7'¶
- plot_background = '#3f3145'¶
- transition = '250ms ease-in'¶
- class pygal.style.DarkGreenBlueStyle(**kwargs)[source]¶
Bases:
StyleA dark green and blue style
- background = '#000'¶
- colors = ('#7ed2fa', '#7dcf30', '#247fab', '#64a626', '#2f9ed3', '#97d959', '#1b6081', '#fff')¶
- foreground = 'rgba(255, 255, 255, 0.9)'¶
- foreground_strong = 'rgba(255, 255, 255, 0.9)'¶
- foreground_subtle = 'rgba(255, 255, 255, 0.6)'¶
- opacity = '.55'¶
- opacity_hover = '.9'¶
- plot_background = '#141414'¶
- transition = '250ms ease-in'¶
- class pygal.style.DarkGreenStyle(**kwargs)[source]¶
Bases:
StyleA dark green style
- background = '#161201'¶
- colors = ('#adde09', '#6e8c06', '#4a5e04', '#fcd202', '#C1E34D', '#fee980')¶
- foreground = 'rgba(255, 255, 255, 0.9)'¶
- foreground_strong = 'rgba(255, 255, 255, 0.9)'¶
- foreground_subtle = 'rgba(255, 255, 255, 0.6)'¶
- opacity = '.6'¶
- opacity_hover = '.9'¶
- plot_background = '#201a01'¶
- transition = '250ms ease-in'¶
- class pygal.style.DarkSolarizedStyle(**kwargs)[source]¶
Bases:
StyleDark solarized popular theme
- background = '#073642'¶
- colors = ('#b58900', '#cb4b16', '#dc322f', '#d33682', '#6c71c4', '#268bd2', '#2aa198', '#859900')¶
- foreground = '#839496'¶
- foreground_strong = '#fdf6e3'¶
- foreground_subtle = '#657b83'¶
- opacity = '.66'¶
- opacity_hover = '.9'¶
- plot_background = '#002b36'¶
- transition = '500ms ease-in'¶
- class pygal.style.DarkStyle(**kwargs)[source]¶
Bases:
StyleA dark style (old default)
- background = 'black'¶
- colors = ('#ff5995', '#b6e354', '#feed6c', '#8cedff', '#9e6ffe', '#899ca1', '#f8f8f2', '#bf4646', '#516083', '#f92672', '#82b414', '#fd971f', '#56c2d6', '#808384', '#8c54fe', '#465457')¶
- foreground = '#999'¶
- foreground_strong = '#eee'¶
- foreground_subtle = '#555'¶
- opacity = '.8'¶
- opacity_hover = '.4'¶
- plot_background = '#111'¶
- transition = '250ms'¶
- class pygal.style.DarkenStyle(color, step=10, max_=None, base_style=None, **kwargs)[source]¶
Bases:
ParametricStyleBaseCreate a style by darkening the given color
- class pygal.style.DesaturateStyle(color, step=10, max_=None, base_style=None, **kwargs)[source]¶
Bases:
ParametricStyleBaseCreate a style by desaturating the given color
- class pygal.style.LightColorizedStyle(**kwargs)[source]¶
Bases:
StyleA light colorized style
- background = '#f8f8f8'¶
- colors = ('#fe9592', '#534f4c', '#3ac2c0', '#a2a7a1', '#fd4b46', '#7b7571', '#73d5d4', '#c9ccc9', '#ffdfde', '#2e9b99')¶
- foreground = '#333'¶
- foreground_strong = '#666'¶
- foreground_subtle = 'rgba(0, 0 , 0, 0.5)'¶
- opacity = '.5'¶
- opacity_hover = '.9'¶
- plot_background = '#ffffff'¶
- transition = '250ms ease-in'¶
- class pygal.style.LightGreenStyle(**kwargs)[source]¶
Bases:
StyleA light green style
- background = '#fbfbfb'¶
- colors = ('#7dcf30', '#247fab', '#97d959', '#ccc', '#579122', '#ddd', '#2f9ed3', '#17506c')¶
- foreground = '#333333'¶
- foreground_strong = '#666'¶
- foreground_subtle = '#222222'¶
- opacity = '.5'¶
- opacity_hover = '.9'¶
- plot_background = '#fff'¶
- transition = '250ms ease-in'¶
- class pygal.style.LightSolarizedStyle(**kwargs)[source]¶
Bases:
DarkSolarizedStyleLight solarized popular theme
- background = '#fdf6e3'¶
- foreground = '#657b83'¶
- foreground_strong = '#073642'¶
- foreground_subtle = '#073642'¶
- plot_background = '#eee8d5'¶
- class pygal.style.LightStyle(**kwargs)[source]¶
Bases:
StyleA light style
- background = 'white'¶
- colors = ('#242424', '#9f6767', '#92ac68', '#d0d293', '#9aacc3', '#bb77a4', '#77bbb5', '#777777')¶
- foreground = 'rgba(0, 0, 0, 0.7)'¶
- foreground_strong = 'rgba(0, 0, 0, 0.9)'¶
- foreground_subtle = 'rgba(0, 0, 0, 0.5)'¶
- plot_background = 'rgba(0, 0, 255, 0.1)'¶
- class pygal.style.LightenStyle(color, step=10, max_=None, base_style=None, **kwargs)[source]¶
Bases:
ParametricStyleBaseCreate a style by lightening the given color
- class pygal.style.NeonStyle(**kwargs)[source]¶
Bases:
DarkStyleSimilar to DarkStyle but with more opacity and effects
- opacity = '.1'¶
- opacity_hover = '.75'¶
- transition = '1s ease-out'¶
- class pygal.style.ParametricStyleBase(color, step=10, max_=None, base_style=None, **kwargs)[source]¶
Bases:
StyleParametric Style base class for all the parametric operations
- class pygal.style.RedBlueStyle(**kwargs)[source]¶
Bases:
StyleA red and blue theme
- background = '#f9f9fa'¶
- colors = ('#d94e4c', '#e5884f', '#39929a', '#e27876', '#245d62', '#f0bb9b', '#c82d2a', '#234547')¶
- foreground = 'rgba(0, 0, 0, 0.9)'¶
- foreground_strong = 'rgba(0, 0, 0, 0.9)'¶
- foreground_subtle = 'rgba(0, 0, 0, 0.5)'¶
- opacity = '.6'¶
- opacity_hover = '.9'¶
- plot_background = '#ffffff'¶
- class pygal.style.RotateStyle(color, step=10, max_=None, base_style=None, **kwargs)[source]¶
Bases:
ParametricStyleBaseCreate a style by rotating the given color
- class pygal.style.SaturateStyle(color, step=10, max_=None, base_style=None, **kwargs)[source]¶
Bases:
ParametricStyleBaseCreate a style by saturating the given color
- class pygal.style.SolidColorStyle(**kwargs)[source]¶
Bases:
StyleA light style with strong colors
- background = '#FFFFFF'¶
- colors = ('#FF9900', '#DC3912', '#4674D1', '#109618', '#990099', '#0099C6', '#DD4477', '#74B217', '#B82E2E', '#316395', '#994499')¶
- foreground = '#000000'¶
- foreground_strong = '#000000'¶
- foreground_subtle = '#828282'¶
- opacity = '.8'¶
- opacity_hover = '.9'¶
- plot_background = '#FFFFFF'¶
- transition = '400ms ease-in'¶
- class pygal.style.Style(**kwargs)[source]¶
Bases:
objectStyling class containing colors for the css generation
- background = 'rgba(249, 249, 249, 1)'¶
- ci_colors = ()¶
- colors = ('#F44336', '#3F51B5', '#009688', '#FFC107', '#FF5722', '#9C27B0', '#03A9F4', '#8BC34A', '#FF9800', '#E91E63', '#2196F3', '#4CAF50', '#FFEB3B', '#673AB7', '#00BCD4', '#CDDC39', '#9E9E9E', '#607D8B')¶
- dot_opacity = '1'¶
- font_family = 'Consolas, "Liberation Mono", Menlo, Courier, monospace'¶
- foreground = 'rgba(0, 0, 0, .87)'¶
- foreground_strong = 'rgba(0, 0, 0, 1)'¶
- foreground_subtle = 'rgba(0, 0, 0, .54)'¶
- guide_stroke_color = 'black'¶
- guide_stroke_dasharray = '4,4'¶
- label_font_family = None¶
- label_font_size = 10¶
- legend_font_family = None¶
- legend_font_size = 14¶
- major_guide_stroke_color = 'black'¶
- major_guide_stroke_dasharray = '6,6'¶
- major_label_font_family = None¶
- major_label_font_size = 10¶
- no_data_font_family = None¶
- no_data_font_size = 64¶
- opacity = '.7'¶
- opacity_hover = '.8'¶
- plot_background = 'rgba(255, 255, 255, 1)'¶
- stroke_opacity = '.8'¶
- stroke_opacity_hover = '.9'¶
- stroke_width = '1'¶
- stroke_width_hover = '4'¶
- title_font_family = None¶
- title_font_size = 16¶
- tooltip_font_family = None¶
- tooltip_font_size = 14¶
- transition = '150ms'¶
- value_background = 'rgba(229, 229, 229, 1)'¶
- value_colors = ()¶
- value_font_family = None¶
- value_font_size = 16¶
- value_label_font_family = None¶
- value_label_font_size = 10¶
- class pygal.style.TurquoiseStyle(**kwargs)[source]¶
Bases:
StyleA turquoise style
- background = '#0e4448'¶
- colors = ('#93d2d9', '#ef940f', '#8C6243', '#fff', '#48b3be', '#f4b456', '#b68866', '#1b8088')¶
- foreground = 'rgba(255, 255, 255, 0.9)'¶
- foreground_strong = 'rgba(255, 255, 255, 0.9)'¶
- foreground_subtle = 'rgba(255, 255 , 255, 0.5)'¶
- opacity = '.5'¶
- opacity_hover = '.9'¶
- plot_background = '#0d3c40'¶
- transition = '250ms ease-in'¶