var change = {
list: [{ "name": "收录组件", "data": collectCounts }, { "name": "关键词组件", "data": keywordCounts }, { "name": "反链组件", "data": blinkCounts}],
chart: "",
initPage: function () {
var listInit = [];
listInit.push(change.list[0]);
chartInfo.series = listInit;
var chart = new Highcharts.Chart(chartInfo);
$("#divSelect input").each(function () {
$(this).change(function () {
var list = [];
$("#divSelect input").each(function (k) {
if ($(this).is(":checked")) {
list.push(change.list[k]);
}
});
chartInfo.series = list;
var chart = new Highcharts.Chart(chartInfo);
});
});
}
}