* chore: Replace flot with highcharts Since flot hasn't been updated since 2014 and was only used in one place. Simplify how highcharts is initialized and used, and re-enable pre-bs5 export functionality. * Fix tests * Remove some console.log statements
26 lines
829 B
HTML
26 lines
829 B
HTML
{% extends "base.html" %}
|
|
{# Copyright The IETF Trust 2015, All Rights Reserved #}
|
|
{% load origin %}
|
|
{% load static %}
|
|
{% load ietf_filters %}
|
|
{% block js %}
|
|
<script src="{% static 'ietf/js/highstock.js' %}"></script>
|
|
<script>
|
|
$(function () {
|
|
var chart;
|
|
$.getJSON('{{ confurl }}?{{ queryargs }}', function (conf) {
|
|
chart = Highcharts.stockChart('chart', conf);
|
|
chart.showLoading();
|
|
$.getJSON('{{ dataurl }}?{{ queryargs }}', function (data) {
|
|
chart.series[0].setData(data);
|
|
chart.hideLoading();
|
|
});
|
|
});
|
|
});
|
|
</script>
|
|
{% endblock %}
|
|
{% block title %}Document Statistics{% endblock %}
|
|
{% block content %}
|
|
{% origin %}
|
|
<div id="chart"></div>
|
|
{% endblock %} |