sb.chart.render("#chartWrap1",{global:{size:{width:400,height:250}},data:{type:"pie",columns:[["US",47],["China",19],["EU",10],["Japan",15],["Korea",3],["Others",5]],},title:{text:"AI Patents by Country (Total:7,319)",position:"top-left"},legend:{position:"inset",inset:{y:30}},extend:{pie:{label:{format:function(value,ratio,index){returnvalue;}}}}});sb.chart.render("#chartWrap2",{global:{size:{width:400,height:250},color:{pattern:["#6d9eec"]}},data:{type:"bar",keys:{x:"company",value:["no"]},json:[{company:"IBM",no:2400},{company:"Alphabet",no:2100},{company:"Microsoft",no:1550},{company:"Baidu",no:850},{company:"Aibaba",no:800}],},title:{text:"AI Patents by Company",position:"top-left"},axis:{rotated:true,x:{type:"category",tick:{outer:false}},y:{tick:{values:[500,1000,1500,2000],outer:false}}},legend:{show:false},grid:{x:{show:false}}});