SW산업 고용유발계수
(단위 : 명 / 십억 원)
var chart_22;
var chart_type_22 = "line";
jQuery(document).ready(function () {
{"data":{"data":[{"구분":"2016년","SW산업":"7.5","제조업":"6.4","서비스업":"10.9","전산업":"8.3"},{"구분":"2017년","SW산업":"7.2","제조업":"6.1","서비스업":"10.4","전산업":"7.9"},{"구분":"2018년","SW산업":"7.2","제조업":"5.8","서비스업":"9.9","전산업":"7.5"},{"구분":"2019년","SW산업":"7.0","제조업":"5.7","서비스업":"9.6","전산업":"7.4"},{"구분":"2020년","SW산업":"7.6","제조업":"5.4","서비스업":"9.1","전산업":"7.1"}]},"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: 2.9,
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: 2.952,
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_22 = data;
var style_22 = style;
var series_22 = series;
if(color_style_22 == undefined){
var color_style_22 = [];
}
if(slider_22 == undefined ){
var slider_22 =true;
}
if (chart_type_22 == "pie") {
chart_22 = webponent.visual.pie.init(jQuery('#webponent_chart_22'), style_22, data_22);
jQuery("#chart_controller").remove();
} else if (chart_type_22 == "tree") {
chart_22 = webponent.visual.treemap.init(jQuery('#webponent_chart_22'), style_22, data_22);
jQuery("#chart_controller").remove();
} else if (chart_type_22 == "horizon") {
chart_22 = webponent.visual.horizon.init(jQuery('#webponent_chart_22'), style_22, data_22);
jQuery("#chart_controller").remove();
} else if (chart_type_22 == "scatter") {
chart_22 = webponent.visual.scatterPlot.init(jQuery('#webponent_chart_22'), style_22, data_22);
jQuery("#chart_controller").remove();
} else {
if(chart_type_22 != "hloc"){
var count =0;
jQuery.each(series_22.main, function (index, value) {
if (index != "type") {
if(chart_type_22 == "line"){
legend_count = count %5;
jQuery("#chart_legends_22").append(legend_style[legend_count][0]+legend_color[count] +legend_style[legend_count][1]+ value.yaxis +'');
}else if(chart_type_22 =="multi_series"){
if(value.series=="line"){
legend_count = count %5;
jQuery("#chart_legends_22").append(legend_style[legend_count][0]+legend_color[count] +legend_style[legend_count][1]+ value.yaxis +'');
}else{
jQuery("#chart_legends_22").append('
' + value.yaxis + '');
}
}else{
if(color_style_22.length){
jQuery("#chart_legends_22").append('
' + value.yaxis + '');
}else{
jQuery("#chart_legends_22").append('
' + value.yaxis + '');
}
}
}
count++;
});
}
chart_22= webponent.chart.init(jQuery('#webponent_chart_22'), data_22, style_22, series_22);
if(slider_22){
if(chart_type_22=="line"||chart_type_22=="column"){
var tmp_x=[];
jQuery("#slider_div_22").attr("style","");
jQuery.each(data_22.data.data,function (index,value){
tmp_x.push(value[Object.keys(value)[0]]);
});
jQuery("#slider-range_22").slider({
range: true,
min: 0,
max: tmp_x.length-1,
values: [ 0, tmp_x.length-1 ],
slide: function( event, ui ) {
jQuery( "#slider-text_22" ).text( "범위 : " + tmp_x[ui.values[ 0 ]] + " - " + tmp_x[ui.values[ 1 ]] );
var tmp_data = JSON.parse(JSON.stringify(data_22)); //object 참조 복사 회피
tmp_data.data.data = tmp_data.data.data.splice(ui.values[ 0 ],ui.values[ 1 ]+1-ui.values[0]);
chart_22.inquery( tmp_data,style_22, series_22);
}
});
jQuery("#slider-text_22").text( "범위 : "+tmp_x[0] + " - " + tmp_x[tmp_x.length-1]);
}
}
}
})