학력별 SW인력 현황
(단위 : %)
var chart_121;
var chart_type_121 = "pie";
jQuery(document).ready(function () {
{"data":{"data":[{"구분":"고졸","인력":"1.8"},{"구분":"전문학사","인력":"7.1"},{"구분":"학사","인력":"76.3"},{"구분":"석사","인력":"8.7"},{"구분":"박사","인력":"6.1"}],"use":"인력"},"legend":{"use":"구분"}}
var style = {
"layout":{
area : {
color : layout_color
}
},
"pie": {
"radius": 70,
"area": {
"color": [
{src:'/lib/webponent/chart/webPonent-Chart-2.0.6/chart/sample/chart/img/pattern04.png'},
{src:'/lib/webponent/chart/webPonent-Chart-2.0.6/chart/sample/chart/img/pattern02.png'},
{src:'/lib/webponent/chart/webPonent-Chart-2.0.6/chart/sample/chart/img/pattern03.png'},
{src:'/lib/webponent/chart/webPonent-Chart-2.0.6/chart/sample/chart/img/pattern01.png'},
{src:'/lib/webponent/chart/webPonent-Chart-2.0.6/chart/sample/chart/img/pattern05.png'}
]
},
"line": {
"color": "#eeeeee",
"width": 2
},
"animate": {
"use": true,
"step": 80,
"type": "easeInOutExpo"
},
"hover": {
"use": true,
"area": {
"color": {
"src": "/lib/webponent/chart/webPonent-Chart-2.0.6/chart/sample/chart/img/over.png"
}
}
}
}
};
var data_121 = data;
var style_121 = style;
var series_121 = series;
if(color_style_121 == undefined){
var color_style_121 = [];
}
if(slider_121 == undefined ){
var slider_121 =true;
}
if (chart_type_121 == "pie") {
chart_121 = webponent.visual.pie.init(jQuery('#webponent_chart_121'), style_121, data_121);
jQuery("#chart_controller").remove();
} else if (chart_type_121 == "tree") {
chart_121 = webponent.visual.treemap.init(jQuery('#webponent_chart_121'), style_121, data_121);
jQuery("#chart_controller").remove();
} else if (chart_type_121 == "horizon") {
chart_121 = webponent.visual.horizon.init(jQuery('#webponent_chart_121'), style_121, data_121);
jQuery("#chart_controller").remove();
} else if (chart_type_121 == "scatter") {
chart_121 = webponent.visual.scatterPlot.init(jQuery('#webponent_chart_121'), style_121, data_121);
jQuery("#chart_controller").remove();
} else {
if(chart_type_121 != "hloc"){
var count =0;
jQuery.each(series_121.main, function (index, value) {
if (index != "type") {
if(chart_type_121 == "line"){
legend_count = count %5;
jQuery("#chart_legends_121").append(legend_style[legend_count][0]+legend_color[count] +legend_style[legend_count][1]+ value.yaxis +'');
}else if(chart_type_121 =="multi_series"){
if(value.series=="line"){
legend_count = count %5;
jQuery("#chart_legends_121").append(legend_style[legend_count][0]+legend_color[count] +legend_style[legend_count][1]+ value.yaxis +'');
}else{
jQuery("#chart_legends_121").append('
' + value.yaxis + '');
}
}else{
if(color_style_121.length){
jQuery("#chart_legends_121").append('
' + value.yaxis + '');
}else{
jQuery("#chart_legends_121").append('
' + value.yaxis + '');
}
}
}
count++;
});
}
chart_121= webponent.chart.init(jQuery('#webponent_chart_121'), data_121, style_121, series_121);
if(slider_121){
if(chart_type_121=="line"||chart_type_121=="column"){
var tmp_x=[];
jQuery("#slider_div_121").attr("style","");
jQuery.each(data_121.data.data,function (index,value){
tmp_x.push(value[Object.keys(value)[0]]);
});
jQuery("#slider-range_121").slider({
range: true,
min: 0,
max: tmp_x.length-1,
values: [ 0, tmp_x.length-1 ],
slide: function( event, ui ) {
jQuery( "#slider-text_121" ).text( "범위 : " + tmp_x[ui.values[ 0 ]] + " - " + tmp_x[ui.values[ 1 ]] );
var tmp_data = JSON.parse(JSON.stringify(data_121)); //object 참조 복사 회피
tmp_data.data.data = tmp_data.data.data.splice(ui.values[ 0 ],ui.values[ 1 ]+1-ui.values[0]);
chart_121.inquery( tmp_data,style_121, series_121);
}
});
jQuery("#slider-text_121").text( "범위 : "+tmp_x[0] + " - " + tmp_x[tmp_x.length-1]);
}
}
}
})