@ -12,7 +12,7 @@ Submit your bug reports and feature requests to the `github bug tracker <http://
Code style
==========
The pygal code tries to respect the `pep8 <https://www.python.org/dev/peps/pep-0008/>`_ please keep that in mind when writing code for pygal. (The code style is checked along witht the unit tests, see next paragraph).
The pygal code tries to respect the `pep8 <https://www.python.org/dev/peps/pep-0008/>`_ please keep that in mind when writing code for pygal. (The code style is checked along with the unit tests, see next paragraph).
First setup an url entry point for you svg: `/mysvg.svg` don't forget to set the mime-type to `image/svg+xml`. (If you are using flask you can use the `render_response` method.)
First setup an url entry point for you svg: ``/mysvg.svg`` don't forget to set the mime-type to ``image/svg+xml``. (If you are using flask you can use the ``render_response`` method.)
Then in your html put an embed tag like this:
@ -23,13 +23,13 @@ Then in your html put an embed tag like this:
</body>
</html>
You can also use an iframe tag, but automatic sizing with `width: 100%` will not work.
You can also use an iframe tag, but automatic sizing with ``width: 100%`` will not work.
Directly in the html
--------------------
You can insert it directly in a html page with the use of `disable_xml_declaration`.
You can insert it directly in a html page with the use of ``disable_xml_declaration``.
You have to put the javascript manually in you webpage, for instance:
@ -38,7 +38,7 @@ You have to put the javascript manually in you webpage, for instance: