SW산업 취업유발계수
(단위 : 명/십억 원)
var chart_21;
var chart_type_21 = "line";
jQuery(document).ready(function () {
{"data":{"data":[{"구분":"2015년","SW산업":"9.5","제조업":"8.7","서비스업":"15.5","전산업":"12.0"},{"구분":"2016년","SW산업":"8.9","제조업":"8.6","서비스업":"15.0","전산업":"11.7"},{"구분":"2017년","SW산업":"8.5","제조업":"8.2","서비스업":"14.5","전산업":"11.3"},{"구분":"2018년","SW산업":"8.5","제조업":"7.8","서비스업":"13.7","전산업":"10.8"},{"구분":"2019년","SW산업":"8.1","제조업":"7.6","서비스업":"13.4","전산업":"10.6"}]},"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: {
graph: {
color: graph_color,
line: {
top: {color: '#cccccc'},
left: {width: 0},
right: {width: 0},
bottom: {color: '#cccccc'}
}
},
layout: {
paddingTop: 57,
paddingRight: 30,
color: layout_color,
line: {color: '#eaeaea', width: 1}
},
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'}
},
tip: {
className: 'tip'
},
series: {
s1: {
line: {
normal: {
color: legend_color[0], width: 3,
over: over_img
}
},
tick: {
style: 'circle', size: 3, overSize: 1.5,
area: {
normal: {color: '#fff', over: {color: '#fff'}}
},
line: {
normal: {color:legend_color[0], width: 3}
}
}
},
s2: {
line: {
normal: {
color: legend_color[1], width: 3,
over: over_img
}
},
tick: {
style: 'square', size: 3, overSize: 1.5,
area: {
normal: {color: '#fff', over: {color: '#fff'}}
},
line: {
normal: {color: legend_color[1], width: 3}
}
}
},
s3: {
line: {
normal: {
color: legend_color[2], width: 3,
over: over_img
}
},
tick: {
style: 'triangle', size: 3, overSize: 1.5,
area: {
normal: {color: '#fff', over: {color: '#fff'}}
},
line: {
normal: {color: legend_color[2], width: 3}
}
}
},
s4: {
line: {
normal: {
color: legend_color[3], width: 3,
over: over_img
}
},
tick: {
style: 'star', size: 3, overSize: 1.5,
area: {
normal: {color: '#fff', over: {color: '#fff'}}
},
line: {
normal: {color: legend_color[3], width: 3}
}
}
},
s5: {
line: {
normal: {
color: legend_color[4], width: 3,
over: over_img
}
},
tick: {
style: 'diamond', size: 3, overSize: 1.5,
area: {
normal: {color: '#fff', over: {color: '#fff'}}
},
line: {
normal: {color: legend_color[4], width: 3}
}
}
},
s6: {
line: {
normal: {
color: legend_color[5], width: 3,
over: over_img
}
},
tick: {
style: 'circle', size: 3, overSize: 1.5,
area: {
normal: {color: '#fff', over: {color: '#fff'}}
},
line: {
normal: {color: legend_color[5], width: 3}
}
}
},
s7: {
line: {
normal: {
color: legend_color[6], width: 3,
over: over_img
}
},
tick: {
style: 'square', size: 3, overSize: 1.5,
area: {
normal: {color: '#fff', over: {color: '#fff'}}
},
line: {
normal: {color: legend_color[6], width: 3}
}
}
}
}
}
};
var data_21 = data;
var style_21 = style;
var series_21 = series;
if(color_style_21 == undefined){
var color_style_21 = [];
}
if(slider_21 == undefined ){
var slider_21 =true;
}
if (chart_type_21 == "pie") {
chart_21 = webponent.visual.pie.init(jQuery('#webponent_chart_21'), style_21, data_21);
jQuery("#chart_controller").remove();
} else if (chart_type_21 == "tree") {
chart_21 = webponent.visual.treemap.init(jQuery('#webponent_chart_21'), style_21, data_21);
jQuery("#chart_controller").remove();
} else if (chart_type_21 == "horizon") {
chart_21 = webponent.visual.horizon.init(jQuery('#webponent_chart_21'), style_21, data_21);
jQuery("#chart_controller").remove();
} else if (chart_type_21 == "scatter") {
chart_21 = webponent.visual.scatterPlot.init(jQuery('#webponent_chart_21'), style_21, data_21);
jQuery("#chart_controller").remove();
} else {
if(chart_type_21 != "hloc"){
var count =0;
jQuery.each(series_21.main, function (index, value) {
if (index != "type") {
if(chart_type_21 == "line"){
legend_count = count %5;
jQuery("#chart_legends_21").append(legend_style[legend_count][0]+legend_color[count] +legend_style[legend_count][1]+ value.yaxis +'');
}else if(chart_type_21 =="multi_series"){
if(value.series=="line"){
legend_count = count %5;
jQuery("#chart_legends_21").append(legend_style[legend_count][0]+legend_color[count] +legend_style[legend_count][1]+ value.yaxis +'');
}else{
jQuery("#chart_legends_21").append('
' + value.yaxis + '');
}
}else{
if(color_style_21.length){
jQuery("#chart_legends_21").append('
' + value.yaxis + '');
}else{
jQuery("#chart_legends_21").append('
' + value.yaxis + '');
}
}
}
count++;
});
}
chart_21= webponent.chart.init(jQuery('#webponent_chart_21'), data_21, style_21, series_21);
if(slider_21){
if(chart_type_21=="line"||chart_type_21=="column"){
var tmp_x=[];
jQuery("#slider_div_21").attr("style","");
jQuery.each(data_21.data.data,function (index,value){
tmp_x.push(value[Object.keys(value)[0]]);
});
jQuery("#slider-range_21").slider({
range: true,
min: 0,
max: tmp_x.length-1,
values: [ 0, tmp_x.length-1 ],
slide: function( event, ui ) {
jQuery( "#slider-text_21" ).text( "범위 : " + tmp_x[ui.values[ 0 ]] + " - " + tmp_x[ui.values[ 1 ]] );
var tmp_data = JSON.parse(JSON.stringify(data_21)); //object 참조 복사 회피
tmp_data.data.data = tmp_data.data.data.splice(ui.values[ 0 ],ui.values[ 1 ]+1-ui.values[0]);
chart_21.inquery( tmp_data,style_21, series_21);
}
});
jQuery("#slider-text_21").text( "범위 : "+tmp_x[0] + " - " + tmp_x[tmp_x.length-1]);
}
}
}
})