add:  if (gGraphType == GRAPH_TYPE_SERIES) { $("#charttypeicon").addClass("barcharticon"); } else { $("#charttypeicon").addClass("linecharticon"); } 
context: function handleLoad(){    initOptions();    initGraphCore(gGraphType == GRAPH_TYPE_SERIES);    $("#availabletests").append("<div class='testline'><i>Loading...</i></div>");    if (gGraphType == GRAPH_TYPE_VALUE) {        Tinderbox.requestTestList(            function (tests) {                transformLegacyData(tests);                populateFilters();                doResetFilter();            });    } else if (gGraphType == GRAPH_TYPE_SERIES) {        Tinderbox.requestTestList(30 /* days */, null, null, null,                                    function (tests) {                                        transformLegacySeriesData(tests);                                        populateFilters();                                        doResetFilter();                                    });    } else {        alert("Unsupported graph type");        return;    }    $("#activetests").droppable({        accept: ".testline",        activeClass: "droppable-active",        hoverClass: "droppable-hover",        drop: function(ev, arg) {            var tid = testIdFromElement(arg.draggable.element);            doAddTest(tid);        }    });    // wrap the range-spans    $(".clicky-ranges span").click(onNewRangeClick);}
meta: 2092	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/2092/837da832c31d2c366e49a95c29a049ea30a73a06/graph-2.js/buggy/js/graph-2.js