Skip to content

Commit

Permalink
fixed report view
Browse files Browse the repository at this point in the history
  • Loading branch information
joseph-nzau committed Apr 10, 2017
1 parent cdae27a commit 810a2bc
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions templates/front/reports.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,18 @@
<div class="row">

<div id="graph">Loading graph...</div>

{% block scripts %}
{% compress js %}
<script src="{% static 'js/jquery-2.1.4.min.js' %}"></script>
<script src="{% static 'js/bootstrap.min.js' %}"></script>
<script src="{% static 'js/jscharts.js' %}"></script>
{% endcompress %}
{% endblock %}
<script type="text/javascript">
var myChart = new JSChart('graph', 'line');
myChart.setDataArray([[1, 80],[2, 40],[3, 60],[4, 65],[5, 50],[6, 50],[7, 60],[8, 80],[9, 150],[10, 100]], 'blue');
myChart.setDataArray([[1, 80],[2, 40],[3, 60],[4, 65],[5, 50],[6, 50],[7, 60],[8, 80],[9, 150],[10, 100]], 'orange');
myChart.setDataArray([[1, 100],[2, 55],[3, 80],[4, 115],[5, 80],[6, 70],[7, 30],[8, 130],[9, 160],[10, 170]], 'green');
myChart.setDataArray([[1, 150],[2, 25],[3, 100],[4, 80],[5, 20],[6, 65],[7, 0],[8, 155],[9, 190],[10, 200]], 'gray');
myChart.setDataArray([[1, 150],[2, 25],[3, 100],[4, 80],[5, 20],[6, 65],[7, 0],[8, 155],[9, 190],[10, 200]], 'red');
myChart.setAxisPaddingBottom(40);
myChart.setTextPaddingBottom(10);
myChart.setAxisValuesNumberY(5);
Expand All @@ -29,7 +35,8 @@
myChart.setTitleColor('#454545');
myChart.setAxisValuesColor('#454545');
myChart.setLineColor('#A4D314', 'green');
myChart.setLineColor('#BBBBBB', 'gray');
myChart.setLineColor('#FFA500', 'orange');
myChart.setLineColor('#d31c22', 'red');
myChart.setTooltip([1]);
myChart.setTooltip([2]);
myChart.setTooltip([3]);
Expand All @@ -49,10 +56,4 @@
</div>
{% endblock %}

{% block scripts %}
{% compress js %}
<script src="{% static 'js/jquery-2.1.4.min.js' %}"></script>
<script src="{% static 'js/bootstrap.min.js' %}"></script>
<script src="{% static 'js/jscharts.js' %}"></script>
{% endcompress %}
{% endblock %}

0 comments on commit 810a2bc

Please sign in to comment.