Fix tooltip on overview chart

- Legacy-Id: 13269
This commit is contained in:
Ole Laursen 2017-05-05 10:49:40 +00:00
parent 365143f615
commit c9d7089e43
2 changed files with 3 additions and 4 deletions

View file

@ -878,7 +878,7 @@ def meeting_stats(request, num=None, stats_type=None):
series_data.sort(key=lambda t: t[0])
table_data.sort(key=lambda t: t[0], reverse=True)
chart_data.append({ "data": series_data })
chart_data.append({ "name": "Registrations", "data": series_data })
elif stats_type == "country":
@ -924,7 +924,6 @@ def meeting_stats(request, num=None, stats_type=None):
return render(request, "stats/meeting_stats.html", {
"chart_data": mark_safe(json.dumps(chart_data)),
"use_legend": chart_data and chart_data[0].get("name"),
"piechart_data": mark_safe(json.dumps(piechart_data)),
"table_data": table_data,
"stats_title": stats_title,

View file

@ -15,7 +15,7 @@
animation: false
}
},
{% if use_legend %}
{% if stats_type != "overview" %}
legend: {
align: "right",
verticalAlign: "middle",
@ -40,7 +40,7 @@
},
tooltip: {
formatter: function () {
var s = '<b>' + this.x + '</b>';
var s = '<b>' + "IETF " + this.x + '</b>';
$.each(this.points, function () {
s += '<br/>' + this.series.name + ': ' + this.y;