<commit_before>/**
 * Created by jayeshkawli on 1/16/15.
 */
var chart;
var titleName = ""
window.onload = function () {
    chart = new CanvasJS.Chart("chartContainer", {
        exportEnabled: true,
        animationEnabled: true,
        animationDuration: 2000,
        title:{
            text: titleName,
            fontSize: 40
        },
        axisY:{
            gridThickness: 0

        },
        data: [
            {
                /*** Change type "column" to "bar", "area", "line" or "pie"***/
                type: "column",
                dataPoints: [
                    { label: "Hours", y: 0 },
                    { label: "Minutes", y: 0 },
                    { label: "Seconds", y: 0 }
                ]
            }
        ]
    });
    chart.render();
}


function updateBarChartWithData(currentTimeData) {
   var splitTimeString = currentTimeData.split(":");
    chart.options.title.text = currentTimeData;
    chart.options.data[0].dataPoints =  [
        { label: "Hours",   y: parseInt(splitTimeString[0]) },
        { label: "Minutes", y: parseInt(splitTimeString[1]) },
        { label: "Seconds", y: parseInt(splitTimeString[2]) }
    ];
    chart.render();
}<commit_msg>Added maximum limit of 60 units on the y-axis<commit_after>/**
 * Created by jayeshkawli on 1/16/15.
 */
var chart;
var titleName = ""
window.onload = function () {
    chart = new CanvasJS.Chart("chartContainer", {
        exportEnabled: true,
        animationEnabled: true,
        title:{
            text: titleName,
            fontSize: 40
        },
        axisY:{
            gridThickness: 0,
            maximum: 60

        },
        data: [
            {
                /*** Change type "column" to "bar", "area", "line" or "pie"***/
                type: "column",
                dataPoints: [
                    { label: "Hours", y: 0 },
                    { label: "Minutes", y: 0 },
                    { label: "Seconds", y: 0 }
                ]
            }
        ]
    });
    chart.render();
}


function updateBarChartWithData(currentTimeData) {
   var splitTimeString = currentTimeData.split(":");
    chart.options.title.text = currentTimeData;

    chart.options.data[0].dataPoints =  [
        { label: "Hours",   y: parseInt(splitTimeString[0]) },
        { label: "Minutes", y: parseInt(splitTimeString[1]) },
        { label: "Seconds", y: parseInt(splitTimeString[2]) }
    ];

    chart.render();
}
{'fraction_non_alphanumeric': 0.14233278955954323, 'fraction_numerical': 0.015497553017944535, 'mean_word_length': 1.6721132897603486, 'pattern_counts': {'":': 2, '<': 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': '4191313', 'n_tokens_mistral': 760, 'n_tokens_neox': 716, 'n_words': 160}