index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>1. read.tsv, 2. lodash processing, 3. Apache ECharts</title>
</head>
<body>
<script src="https://cdn.jsdelivr.net/lodash/4/lodash.min.js"></script>
<h1>Actividad</h1>
<ol>
<li>read.tsv</li>
<li>_lodash processing</li>
<li>Apache ECharts</li>
</ol>
<div id="aca_deberia_estar_el_grafico_generado_por_ECharts"></div>
<script>
var data = [
{c :'Ing Industrial' },
{c :'Ing Industrial' },
{c :'Ing Industrial' },
{c :'Ing Industrial' },
{c :'Ing Industrial' },
{c :'Ing Industrial' },
{c :'Ing Industrial' },
{c :'Ing Industrial' },
{c :'Ing Industrial' },
{c :'Ing Industrial' },
{c :'Ing Industrial' },
{c :'Ing Industrial' },
{c :'Ing Industrial' },
{c :'Ing Industrial' },
{c :'Ing Industrial' },
{c :'Ing Informatica' },
{c :'Ing Informatica' },
{c :'Ing Informatica' },
{c :'Ing Informatica' },
{c :'Ing Informatica' },
{c :'Ing Informatica' }
];
var result = _.countBy(data, 'c');
console.log(result);
</script>
</body>
</html>