Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
small bugfix
  • Loading branch information
proost committed Sep 19, 2017
1 parent 98f2fc9 commit 7fc912d
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions planet/templates/expression_profile_comparison.html
Expand Up @@ -100,13 +100,15 @@ <h1>Compare Profiles</h1>

{% block extrajs %}
<script src="{{ url_for('static', filename='js/Chart.min.js') }}"></script>
<script>
$(function () {
var data = {{ profiles|safe }};
var ctx = document.getElementById("chart-line").getContext("2d");
var myChart = new Chart(ctx, data);
});
</script>
{% if profiles %}
<script>
$(function () {
var data = {{ profiles|safe }};
var ctx = document.getElementById("chart-line").getContext("2d");
var myChart = new Chart(ctx, data);
});
</script>
{% endif %}
{% if example and example.probes %}
<script>
$(function() {
Expand Down

0 comments on commit 7fc912d

Please sign in to comment.