Skip to content

Commit

Permalink
fixed the issue with QA data category mapping (#829)
Browse files Browse the repository at this point in the history
* fixed the issue with QA data category mapping
  • Loading branch information
takinbo authored Aug 8, 2021
1 parent 307f0fb commit 5462c51
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,13 @@ <h5 class="text-center">{% if row.description|count > 11 %}<abbr title="{{ row.d
$(function () {
$('.chart').each(function(idx, el) {
var json = JSON.parse(el.dataset.chart);
var dataMap = d3.map()
var dataMap = new Map()
.set('Flagged', json.Flagged || 0)
.set('Verified', json.Verified || 0)
.set('OK', json.OK || 0)
.set('Missing', json.Missing || 0);
var labels = ['Flagged', 'Verified', 'OK', 'Missing'];
var labelsMap = d3.map()
var labelsMap = new Map()
.set('Flagged', "{{ _('Flagged') }}")
.set('Verified', "{{ _('Verified') }}")
.set('OK', "{{ _('OK') }}")
Expand Down

0 comments on commit 5462c51

Please sign in to comment.