<commit_before>/*!
 * Copyright (c) 2015 The Pycroft Authors. See the AUTHORS file.
 * This file is part of the Pycroft project and licensed under the terms of
 * the Apache License, Version 2.0. See the LICENSE file for details.
 */

import d3 from 'd3';

d3.selectAll('[data-chart="balance"]', function() {
  var parent = d3.select(this);
  var _width = parent.node().getBoundingClientRect().width;
  var margin = {top: 20, right: 20, bottom: 30, left: 50},
      width = _width - margin.left - margin.right,
      height = 150 - margin.top - margin.bottom;

  var x = d3.time.scale()
      .range([0, width]);

  var y = d3.scale.linear()
      .range([height, 0]);
<commit_msg>Fix account balance selector iteration<commit_after>/*!
 * Copyright (c) 2015 The Pycroft Authors. See the AUTHORS file.
 * This file is part of the Pycroft project and licensed under the terms of
 * the Apache License, Version 2.0. See the LICENSE file for details.
 */

import d3 from 'd3';

d3.selectAll('[data-chart="balance"]').each(function(d, i) {
  var parent = d3.select(this);
  var _width = parent.node().getBoundingClientRect().width;
  var margin = {top: 20, right: 20, bottom: 30, left: 50},
      width = _width - margin.left - margin.right,
      height = 150 - margin.top - margin.bottom;

  var x = d3.time.scale()
      .range([0, width]);

  var y = d3.scale.linear()
      .range([height, 0]);

{'fraction_non_alphanumeric': 0.14111747851002865, 'fraction_numerical': 0.03581661891117478, 'mean_word_length': 3.2591463414634148, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4020659', 'n_tokens_mistral': 487, 'n_tokens_neox': 444, 'n_words': 156}