<commit_before><!doctype html>
<meta charset="utf-8">
<script src="../js/d3.js"></script>
<script src="../js/vistk.js"></script>
<link href="../css/vistk.css" rel="stylesheet">
<body>
<div id="viz"></div>
<body>

<script src="../js/d3.js"></script>
<script>

// d3.csv("../data/rankings.csv", function(error, data) {

d3.csv("../data/soccer-ligue1-2012-2013.json", function(error, data) {

  dd = data
  
  var res = [];
  // Flatten the data here
  // Or do something to build the temporal data? Should it happen here?
  data.forEach(function(d) {

    for(var k in d) {

      if(k != "Country") {

        res.push({name: d.Country, year: k, rank: +d[k], id: d.Country.replace(" ", "_"), category: +d[k]%5})

      }

    }
  })

  visualization = vistk.viz()
    .type("linechart")
    .container("#viz")
    .height(600)
    .width(900)
    .data(res)
    .id("id")
    .group("category")
    .color("name")
    .title("Products")
    .group("category")
    .text("name")


  d3.select("#viz").call(visualization)

})

</script>
</body>
</html><commit_msg>Progress on new line chart<commit_after><!doctype html>
<meta charset="utf-8">
<script src="../js/d3.js"></script>
<script src="../js/vistk.js"></script>
<link href="../css/vistk.css" rel="stylesheet">
<body>
<div id="viz"></div>
<body>

<script src="../js/d3.js"></script>
<script>

d3.json("../data/soccer-ligue1-2012-2013.json", function(error, data) {

  dd = data
  
  var res = [];

  
  // This is what the result should look like
  // {name: d.Country, year: k, rank: +d[k], id: d.Country.replace(" ", "_"), category: +d[k]%5})

  visualization = vistk.viz()
    .type("linechart")
    .container("#viz")
    .height(600)
    .width(900)
    .data(res)
    .id("id")
    .group("category")
    .color("name")
    .title("Products")
    .group("category")
    .text("name")

  d3.select("#viz").call(visualization)

})

</script>
</body>
</html>
{'fraction_non_alphanumeric': 0.23680083638264507, 'fraction_numerical': 0.02247778358599059, 'mean_word_length': 3.0636942675159236, 'pattern_counts': {'":': 0, '<': 37, '<?xml version=': 0, '>': 37, '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': '4798514', 'n_tokens_mistral': 774, 'n_tokens_neox': 726, 'n_words': 141}