학력별 SW전문 인력
(단위 : 천 명)
var chart_98;
var chart_type_98 = "stack_column";
jQuery(document).ready(function () {
{"data":{"data":[{"구분":"2019년","고졸":"4.8","전문학사":"39.7","학사":"235.6","석사":"19.1","박사":"4.1"},{"구분":"2020년","고졸":"3.6","전문학사":"41.3","학사":"244.3","석사":"21.7","박사":"4.1"},{"구분":"2021년","고졸":"4.3","전문학사":"44.6","학사":"273.7","석사":"24.2","박사":"4.8"},{"구분":"2022년","고졸":"6.5","전문학사":"49.4","학사":"294.1","석사":"34.2","박사":"6.9"},{"구분":"2023년","고졸":"6.5","전문학사":"60.8","학사":"361.5","석사":"37.7","박사":"6.5"}]},"use":{"animate":true,"aCrossLine":true,"multiYAxis":false},"animate":{"speed":100},"format":{ "yAxis": "priceDataFormat" },"func":{ "tip": function (tipElement, data, rect) { var date = data.xaxis; var tip = '
'+ String(data.yaxisname) + ' / ' + String(data.yaxis)+'
'; tipElement.html(tip).show(); tipElement.html(tipElement.html()).css({ left: rect.x - (tipElement.width() / 2), top: rect.y - 38 }); } }}
var style = {
"main": {
"layout": {
"paddingTop": 57,
"paddingRight": 30,
"color": "#ffffff",
"line": {
"color": "#eaeaea",
"width": 1
}
},
"graph": {
"color": "#fff",
"line": {
"top": {
"color": "#cccccc"
},
"left": {
"width": 0
},
"right": {
"width": 0
},
"bottom": {
"color": "#cccccc"
}
}
},
"crossLine": {
"color": "#465866"
},
"xAxis": {
"paddingTop": 13,
"height": 30,
"text": {
"family": "Nanum Gothic",
"size": 12,
"color": "#666"
},
"line": {
"color": "#e3e3e3",
"width": 1
}
},
"yAxis": {
"line": {
"color": "#cccccc",
"width": 1,
"opacity": 1
},
"text": {
"family": "Nanum Gothic",
"size": 12,
"color": "#666",
"align": "right"
},
"baseAtZero": true
},
"tip": {
"className": "tip"
},
"series": {
"s1": {
"area": {
"normal": {
"color": "#1d64ac",
"over": {
"color": {
"src": "/lib/webponent/chart/webPonent-Chart-2.0.6/chart/sample/chart/img/over.png"
}
}
}
}
},
"s2": {
"area": {
"normal": {
"color": "#4abfca",
"over": {
"color": {
"src": "/lib/webponent/chart/webPonent-Chart-2.0.6/chart/sample/chart/img/over.png"
}
}
}
}
},
"s3": {
"area": {
"normal": {
"color": "#f9d33a",
"over": {
"color": {
"src": "/lib/webponent/chart/webPonent-Chart-2.0.6/chart/sample/chart/img/over.png"
}
}
}
}
},
"s4": {
"area": {
"normal": {
"color": "#ff8e1f",
"over": {
"color": {
"src": "/lib/webponent/chart/webPonent-Chart-2.0.6/chart/sample/chart/img/over.png"
}
}
}
}
},
"s5": {
"area": {
"normal": {
"color": "#7badff",
"over": {
"color": {
"src": "/lib/webponent/chart/webPonent-Chart-2.0.6/chart/sample/chart/img/over.png"
}
}
}
}
},
"s6": {
"area": {
"normal": {
"color": "#6763ff",
"over": {
"color": {
"src": "/lib/webponent/chart/webPonent-Chart-2.0.6/chart/sample/chart/img/over.png"
}
}
}
}
},
"s7": {
"area": {
"normal": {
"color": "#ff6e6e",
"over": {
"color": {
"src": "/lib/webponent/chart/webPonent-Chart-2.0.6/chart/sample/chart/img/over.png"
}
}
}
}
},
"s8": {
"area": {
"normal": {
"color": "#c5c5c5",
"over": {
"color": {
"src": "/lib/webponent/chart/webPonent-Chart-2.0.6/chart/sample/chart/img/over.png"
}
}
}
}
},
}
}
};
var data_98 = data;
var style_98 = style;
var series_98 = series;
if(color_style_98 == undefined){
var color_style_98 = [];
}
if(slider_98 == undefined ){
var slider_98 =true;
}
if (chart_type_98 == "pie") {
chart_98 = webponent.visual.pie.init(jQuery('#webponent_chart_98'), style_98, data_98);
jQuery("#chart_controller").remove();
} else if (chart_type_98 == "tree") {
chart_98 = webponent.visual.treemap.init(jQuery('#webponent_chart_98'), style_98, data_98);
jQuery("#chart_controller").remove();
} else if (chart_type_98 == "horizon") {
chart_98 = webponent.visual.horizon.init(jQuery('#webponent_chart_98'), style_98, data_98);
jQuery("#chart_controller").remove();
} else if (chart_type_98 == "scatter") {
chart_98 = webponent.visual.scatterPlot.init(jQuery('#webponent_chart_98'), style_98, data_98);
jQuery("#chart_controller").remove();
} else {
if(chart_type_98 != "hloc"){
var count =0;
jQuery.each(series_98.main, function (index, value) {
if (index != "type") {
if(chart_type_98 == "line"){
legend_count = count %5;
jQuery("#chart_legends_98").append(legend_style[legend_count][0]+legend_color[count] +legend_style[legend_count][1]+ value.yaxis +'');
}else if(chart_type_98 =="multi_series"){
if(value.series=="line"){
legend_count = count %5;
jQuery("#chart_legends_98").append(legend_style[legend_count][0]+legend_color[count] +legend_style[legend_count][1]+ value.yaxis +'');
}else{
jQuery("#chart_legends_98").append('
' + value.yaxis + '');
}
}else{
if(color_style_98.length){
jQuery("#chart_legends_98").append('
' + value.yaxis + '');
}else{
jQuery("#chart_legends_98").append('
' + value.yaxis + '');
}
}
}
count++;
});
}
chart_98= webponent.chart.init(jQuery('#webponent_chart_98'), data_98, style_98, series_98);
if(slider_98){
if(chart_type_98=="line"||chart_type_98=="column"){
var tmp_x=[];
jQuery("#slider_div_98").attr("style","");
jQuery.each(data_98.data.data,function (index,value){
tmp_x.push(value[Object.keys(value)[0]]);
});
jQuery("#slider-range_98").slider({
range: true,
min: 0,
max: tmp_x.length-1,
values: [ 0, tmp_x.length-1 ],
slide: function( event, ui ) {
jQuery( "#slider-text_98" ).text( "범위 : " + tmp_x[ui.values[ 0 ]] + " - " + tmp_x[ui.values[ 1 ]] );
var tmp_data = JSON.parse(JSON.stringify(data_98)); //object 참조 복사 회피
tmp_data.data.data = tmp_data.data.data.splice(ui.values[ 0 ],ui.values[ 1 ]+1-ui.values[0]);
chart_98.inquery( tmp_data,style_98, series_98);
}
});
jQuery("#slider-text_98").text( "범위 : "+tmp_x[0] + " - " + tmp_x[tmp_x.length-1]);
}
}
}
})