");
document.write("");
document.write("");
document.write("");
$(document).ready(function(){
var oCommonChart = new CommonChart(40, 'selectDiv', 0, 0);//筆數, div id, 市場別 0-上市 1-上櫃, 買賣筆數(0)/張數(1)
console.log(oCommonChart.getData('bsAnalysis'));
$("#trade").change(function(){
//var subTitle = $( "#trade option:selected" ).text();
var tradeInd = $( "#trade option:selected" ).index();
var bsMarkInd = $( "#bsMark option:selected" ).index();
console.log('市場別: '+tradeInd+', 筆/張: '+bsMarkInd);
//console.log(oCommonChart);
oCommonChart.changeData(tradeInd, bsMarkInd);
});
$("#bsMark").change(function(){
//var subTitle = $( "#trade option:selected" ).text();
var tradeInd = $( "#trade option:selected" ).index();
var bsMarkInd = $( "#bsMark option:selected" ).index();
console.log('市場別: '+tradeInd+', 筆/張: '+bsMarkInd);
//console.log(oCommonChart);
oCommonChart.changeData(tradeInd, bsMarkInd);
});
});
//-->
|