diff --git a/src/pretix/plugins/statistics/static/pretixplugins/statistics/statistics.js b/src/pretix/plugins/statistics/static/pretixplugins/statistics/statistics.js index 33c2b3319d..0fdd457057 100644 --- a/src/pretix/plugins/statistics/static/pretixplugins/statistics/statistics.js +++ b/src/pretix/plugins/statistics/static/pretixplugins/statistics/statistics.js @@ -19,6 +19,30 @@ $(function () { fillOpacity: 0.3, behaveLikeLine: true }); + new Morris.Area({ + element: 'abd_chart', + data: JSON.parse($("#abd-data").html()), + xkey: 'date', + ykeys: ['ordered', 'paid'], + labels: [gettext('Attendees (ordered)'), gettext('Attendees (paid)')], + lineColors: ['#3b1c4a', '#50a167'], + smooth: false, + resize: true, + fillOpacity: 0.3, + behaveLikeLine: true + }); + new Morris.Area({ + element: 'abt_chart', + data: JSON.parse($("#abt-data").html()), + xkey: 'date', + ykeys: ['ordered', 'paid'], + labels: [gettext('Attendees (ordered)'), gettext('Attendees (paid)')], + lineColors: ['#3b1c4a', '#50a167'], + smooth: false, + resize: true, + fillOpacity: 0.3, + behaveLikeLine: true + }); new Morris.Area({ element: 'rev_chart', data: JSON.parse($("#rev-data").html()), diff --git a/src/pretix/plugins/statistics/templates/pretixplugins/statistics/index.html b/src/pretix/plugins/statistics/templates/pretixplugins/statistics/index.html index d6d3601d41..db7f08b89c 100644 --- a/src/pretix/plugins/statistics/templates/pretixplugins/statistics/index.html +++ b/src/pretix/plugins/statistics/templates/pretixplugins/statistics/index.html @@ -31,6 +31,46 @@
++ + {% blocktrans trimmed %} + Attendees in orders paid in multiple instalments are shown using the date of the + final payment. Order dates reflect when the order was first placed; attendees added + later via additional order positions still use the original order date. Attendees in + placed orders include those from all order states (pending, paid, cancelled, and + expired); attendees in paid orders include only those from paid orders and exclude + those from cancelled orders. + {% endblocktrans %} + +
++ + {% blocktrans trimmed %} + Attendees in orders paid in multiple instalments are shown using the date of the + final payment. Order dates reflect when the order was first placed; attendees added + later via additional order positions still use the original order date. Attendees in + placed orders include those from all order states (pending, paid, cancelled, and + expired); attendees in paid orders include only those from paid orders and exclude + those from cancelled orders. + {% endblocktrans %} + +
+