123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- {# This template adds attributes unique
- to scatterChart #}
- {% extends "content.html" %}
- {% block body %}
- {% block data %}
- {{super()}}
- {% endblock data %}
- {% block init %}
- {{super()}}
- {% endblock init %}
- {% block rendering_opts %}
- {{super()}}
- {% endblock rendering_opts %}
- {% block axes %}
- {{super()}}
- {% endblock axes %}
- {% if chart.x_axis_format == 'AM_PM' %}
- function get_am_pm(d){
- if (d > 12) {
- d = d - 12; return (String(d) + 'PM');
- }
- else {
- return (String(d) + 'AM');
- }
- };
- {% endif %}
- {% block legend %}
- {{super()}}
- {% endblock legend %}
- {% block custoattr %}
- {{super()}}
- {% endblock custoattr %}
- {% block inject %}
- chart
- .showDistX(true)
- .showDistY(true)
- .color(d3.scale.category10().range());
- {{ super() }}
- {% endblock inject %}
- {% block extras %}
- {{ super () }}
- {% endblock extras %}
- {% block close %}
- {{ super() }}
- {% endblock close %}
- {% endblock body %}
|