Python to generate nice looking SVG graph http://pygal.org/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
1.6 KiB

13 years ago
{% extends '_layout.jinja2' %}
{% block section %}
<h1>Moulin Rouge</h1>
<a href="{{ url_for('interpolation') }}">Interpolation</a>
13 years ago
<a href="{{ url_for('rotation') }}">Rotations test</a>
<a href="{{ url_for('raw_svgs') }}">Raw svgs</a>
{% for kind in ('series', 'labels') %}
<a href="{{ url_for('with_table', type=kind) }}">Chart with HTML table ({{ kind }})</a>
{% endfor %}
<hr />
<h3>Quick tests</h3>
<dl>
{% for link in links %}
{% if link.endswith('_for') %}
<dd>{{ link.replace('test_', '').replace('_for', '').replace('_', ' ') | title }}
<small>
{% for chart_name in charts_name %}
<a href="{{ url_for(link, chart=chart_name) }}">{{ chart_name | title }}</a>
{% endfor %}
</small>
</dd>
{% else %}
<dd><a href="{{ url_for(link) }}">{{ link.replace('test_', '').replace('_', ' ') | title }}</a></dd>
{% endif %}
{% endfor %}
</dl>
<hr />
<h3>Styles</h3>
<ul>
{% for style in styles %}
<li>
<embed src="{{ url_for('sparkline', style=style) }}" type="image/svg+xml" />
<a href="{{ url_for('all', style=style) }}">{{ style | title }}</a>
</li>
{% endfor %}
</ul>
<hr />
<h3>Parametric Styles</h3>
<ul>
{% for color in parametric_colors %}
<li><embed src="{{ url_for('sparkline', style='rotate', color=color) }}" type="image/svg+xml" /></li>
{% for style in parametric_styles %}
<li>
<a href="{{ url_for('all', style=style, color=color) }}">{{ style }} for {{ color }}</a>
</li>
{% endfor %}
{% endfor %}
</ul>
13 years ago
{% endblock section %}