650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131228/150024IL-0.png "title =" QQ20130917172833.png "alt =" 182411969.png"/>
Var chart;
$ (Document). ready (function (){
Chart = new Highcharts. Chart ({
Chart :{
RenderTo: 'Container ',
Margin: [0, 10,150, 10]
},
Credits :{
Text :''
},
Title :{
Text :''
},
PlotArea :{
Shadow: null,
BorderWidth: null,
BackgroundColor: null
},
Tooltip :{
Formatter: function (){
Return this. point. name + '(' + Highcharts. numberFormat (this. percentage, 1) + '% )';
}
},
PlotOptions :{
Pie :{
Enabled: true,
Size: '000000 ',
AllowPointSelect: true,
Cursor: 'pointer ',
DataLabels :{
Enabled: true,
Rotation: 0,
Formatter: function (){
If (this. y> 0) return this. y + "parts" + '<br/>' + '(' + Highcharts. numberFormat (this. percentage, 1) + '% )';
},
Color: 'white ',
Style :{
Font: '13px Trebuchet MS, Verdana, sans-serif'
}
}
}
},
Legend :{
Layout: 'signature ',
Style :{
Left: 'auto ',
Bottom: 'auto ',
Right: '50px ',
Top: '100px'
}
},
Series :[{
Type: 'pie ',
Name: 'inventory distribution ',
Data :[
/* [State, inNums],
[State2, outNums] */
{
Name: state,
Y: inItem,
/* Color: '# 4F81BC '*/
},
{
Name: state2, // display name
Y: outTtem, // display Ratio
/* Color: '#9BBB58 '*/
}
]
}]
});
});