score:0

I actually successfully tallied the data.

THis is the solution

    data.forEach(function (d) {
        var splitdate = d.Date;
        console.log(d.Date);
        var year = splitdate.split('/')[2];


        tally[year] = (tally[year] || 0) + 1;
        console.log(tally[year]);

    });

    var data = [];

    for (var year in tally) {
        if (tally.hasOwnProperty(year)) {
            data.push({
                year: year,
                frequency: tally[year]
            });
            console.log(data);

My question is how Can I sanitize the x-axis to reflect the correct year.

I don't know why is became .016 .017 etc

Graph


Related Query

More Query from same tag