SW산업 부가가치유발계수
(단위 : 수요 1단위 당)
var chart_20;
var chart_type_20 = "line";
jQuery(document).ready(function () {
{"data":{"data":[{"구분":"2016년","SW산업":"0.894","제조업":"0.683","서비스업":"0.878","전산업":"0.786"},{"구분":"2017년","SW산업":"0.886","제조업":"0.668","서비스업":"0.871","전산업":"0.773"},{"구분":"2018년","SW산업":"0.894","제조업":"0.654","서비스업":"0.866","전산업":"0.760"},{"구분":"2019년","SW산업":"0.893","제조업":"0.657","서비스업":"0.867","전산업":"0.763"},{"구분":"2020년","SW산업":"0.893","제조업":"0.681","서비스업":"0.882","전산업":"0.783"}]},"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.1,
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_20 = data;
var style_20 = style;
var series_20 = series;
if(color_style_20 == undefined){
var color_style_20 = [];
}
if(slider_20 == undefined ){
var slider_20 =true;
}
if (chart_type_20 == "pie") {
chart_20 = webponent.visual.pie.init(jQuery('#webponent_chart_20'), style_20, data_20);
jQuery("#chart_controller").remove();
} else if (chart_type_20 == "tree") {
chart_20 = webponent.visual.treemap.init(jQuery('#webponent_chart_20'), style_20, data_20);
jQuery("#chart_controller").remove();
} else if (chart_type_20 == "horizon") {
chart_20 = webponent.visual.horizon.init(jQuery('#webponent_chart_20'), style_20, data_20);
jQuery("#chart_controller").remove();
} else if (chart_type_20 == "scatter") {
chart_20 = webponent.visual.scatterPlot.init(jQuery('#webponent_chart_20'), style_20, data_20);
jQuery("#chart_controller").remove();
} else {
if(chart_type_20 != "hloc"){
var count =0;
jQuery.each(series_20.main, function (index, value) {
if (index != "type") {
if(chart_type_20 == "line"){
legend_count = count %5;
jQuery("#chart_legends_20").append(legend_style[legend_count][0]+legend_color[count] +legend_style[legend_count][1]+ value.yaxis +'');
}else if(chart_type_20 =="multi_series"){
if(value.series=="line"){
legend_count = count %5;
jQuery("#chart_legends_20").append(legend_style[legend_count][0]+legend_color[count] +legend_style[legend_count][1]+ value.yaxis +'');
}else{
jQuery("#chart_legends_20").append('
' + value.yaxis + '');
}
}else{
if(color_style_20.length){
jQuery("#chart_legends_20").append('
' + value.yaxis + '');
}else{
jQuery("#chart_legends_20").append('
' + value.yaxis + '');
}
}
}
count++;
});
}
chart_20= webponent.chart.init(jQuery('#webponent_chart_20'), data_20, style_20, series_20);
if(slider_20){
if(chart_type_20=="line"||chart_type_20=="column"){
var tmp_x=[];
jQuery("#slider_div_20").attr("style","");
jQuery.each(data_20.data.data,function (index,value){
tmp_x.push(value[Object.keys(value)[0]]);
});
jQuery("#slider-range_20").slider({
range: true,
min: 0,
max: tmp_x.length-1,
values: [ 0, tmp_x.length-1 ],
slide: function( event, ui ) {
jQuery( "#slider-text_20" ).text( "범위 : " + tmp_x[ui.values[ 0 ]] + " - " + tmp_x[ui.values[ 1 ]] );
var tmp_data = JSON.parse(JSON.stringify(data_20)); //object 참조 복사 회피
tmp_data.data.data = tmp_data.data.data.splice(ui.values[ 0 ],ui.values[ 1 ]+1-ui.values[0]);
chart_20.inquery( tmp_data,style_20, series_20);
}
});
jQuery("#slider-text_20").text( "범위 : "+tmp_x[0] + " - " + tmp_x[tmp_x.length-1]);
}
}
}
})