From 70721c015af3b2ad1c998cb8acdb89b9ee396210 Mon Sep 17 00:00:00 2001 From: Florian Mounier Date: Mon, 17 Sep 2012 14:11:09 +0200 Subject: [PATCH] Add news --- configuration.yaml | 4 ++++ news/fmounier/2012-09-17@12:00:00.rst | 31 +++++++++++++++++++++++++++ static/css/style.css | 24 ++++++++------------- 3 files changed, 44 insertions(+), 15 deletions(-) create mode 100644 news/fmounier/2012-09-17@12:00:00.rst diff --git a/configuration.yaml b/configuration.yaml index 42657e0..79950e7 100644 --- a/configuration.yaml +++ b/configuration.yaml @@ -5,6 +5,10 @@ public: true url: http://www.pygal.org/ menu: + - Try it online: + link: '#' + - News: + link: /news/ - Documentation: link: /documentation/ - Support: diff --git a/news/fmounier/2012-09-17@12:00:00.rst b/news/fmounier/2012-09-17@12:00:00.rst new file mode 100644 index 0000000..c53a08f --- /dev/null +++ b/news/fmounier/2012-09-17@12:00:00.rst @@ -0,0 +1,31 @@ +Pygal 0.12.0 +============ + + +Pygal 0.12.0 is out! + +Get it via `PyPi `_. + +Changelog +--------- + +- Core rewrite of the instanciation mechanism. Now it works with ghost objects holding configuration and values. Those phantoms instanciate the real objects only when the render function is called. It simplifies a lot of code. + +- Support of label indexed values, ie: + +.. pygal-code:: + + chart = pygal.Bar() + chart.add('A', {'red': 10, 'green': 12, 'blue': 14}) + chart.add('B', {'green': 11, 'red': 7}) + chart.add('C', {'blue': 2, 'red': 13}) + chart.x_labels = ('red', 'green', 'blue') + +.. caution:: + + It breaks the api when adding only a value with its metadata: + + .. code-block:: + + chart.add('Serie', {'value': 2, 'label': 'my only value'}) # Don't write that + chart.add('Serie', [{'value': 2, 'label': 'my only value'}]) # Write this instead diff --git a/static/css/style.css b/static/css/style.css index 0be027d..a1bb0a2 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -310,21 +310,15 @@ footer ul li a:focus { .ribbon { background: linear-gradient(#E95355, #D63739); - overflow: hidden; - position: fixed; - right: -3em; - top: 2em; - transform: rotate(45deg); - box-shadow: 0 0 1em #888; } + .ribbon a { - font: bold .8em "philisopher"; - border: 1px solid #faa; - color: #fff; - display: block; - margin: 0.05em 0 0.075em 0; - padding: 0.5em 3.5em; - text-align: center; - text-decoration: none; - text-shadow: 0 0 0.5em #444; + font: bold .8em "philisopher" ; +} + + +#rss { + background-color: #DA3D3F; + float: right; + margin: 10px; }