Svg-charts

Latest version: v4.0

Safety actively analyzes 706267 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 5

3.3.1

=====

* 13: Fix issues in lazy-evaluated iterators.

3.3

===

* 12: The library now provides an ``svg.charts.graph.DrawHooks``
mix-in for customizing the draw behavior.
* Cleaned up documentation.

3.2

===

* 8: Subtitle is now rendering the subtitle and not the title
again.
* 9: ``Bar`` objects now expose a ``_fill_class`` method
for overriding the default CSS fill class. It's now possible
to create a custom subclass that generates the fill based
on the field index as well. For example::

class VerticalBar(svg.charts.bar.VerticalBar):
key = False

def _fill_class(self, dataset_index, field_index):
fill_index = 1 + dataset_index + field_index*len(self.data)
return 'fill%s' % fill_index

3.1

===

* Adding a couple small dependencies eliminated a lot of duplicated code
in the ``util`` module.
* Corrected error when ``stacked`` was used in Line charts.

3.0

===

* Dropped support for Python 2.6.
* Requires setuptools for installation.
* Filter out comments when parsing CSS.
* Corrected errors in ``Graph.render_inline_styles``.

2.3

===

* 4: Added hook in Graph to allow overriding of the attributes on the
root SVG element. One can now override or monkeypatch
``Graph._get_root_attributes`` to alter the rendering of the root
attributes such as width and height. For example, to omit width and height::

class MyPlot(plot.Plot):
def _get_root_attributes(self):
attrs = super(MyPlot, self)._get_root_attributes()
del attrs['width']
del attrs['height']
return attrs

Page 2 of 5

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.