SW 수출 현황 (분기별) - 미사용
(단위 : 억 달러)
var chart_28;
var chart_type_28 = "stack_column";
jQuery(document).ready(function () {
{"data":{"data":[{"구분":"2022년 1분기","패키지SW":"3.8","IT서비스":"30.4","게임SW":"20.0"},{"구분":"2022년 2분기","패키지SW":"3.9","IT서비스":"33.6","게임SW":"17.7"},{"구분":"2022년 3분기","패키지SW":"3.8","IT서비스":"29.6","게임SW":"16.6"},{"구분":"2022년 4분기","패키지SW":"4.1","IT서비스":"29.5","게임SW":"16.3"},{"구분":"2023년 1분기(P)","패키지SW":"3.5","IT서비스":"23.3","게임SW":"20.5"},{"구분":"2023년 2분기(P)","패키지SW":"4.0","IT서비스":"22.6","게임SW":"16.9"},{"구분":"2023년 3분기(P)","패키지SW":"3.2","IT서비스":"22.8","게임SW":"18.9"}]},"use":{"animate":true,"aCrossLine":true,"multiYAxis":false},"animate":{"speed":100},"format":{ yAxis: function(value){ return Math.floor( value * 10 ) / 10; } },"func":{ "tip": function (tipElement, data, rect) { var date = data.xaxis; var tip = '
'+ String(data.yaxisname) + ' / ' + String(data.yaxis).format().trim()+'
'; 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": {src:'/lib/webponent/chart/webPonent-Chart-2.0.6/chart/sample/chart/img/pattern01.png'},
"over": {
"color": {
"src": "/lib/webponent/chart/webPonent-Chart-2.0.6/chart/sample/chart/img/over.png"
}
}
}
}
},
"s5": {
"area": {
"normal": {
"color": {src:'/lib/webponent/chart/webPonent-Chart-2.0.6/chart/sample/chart/img/pattern05.png'},
"over": {
"color": {
"src": "/lib/webponent/chart/webPonent-Chart-2.0.6/chart/sample/chart/img/over.png"
}
}
}
}
},
}
}
};
var data_28 = data;
var style_28 = style;
var series_28 = series;
if(color_style_28 == undefined){
var color_style_28 = [];
}
if(slider_28 == undefined ){
var slider_28 =true;
}
if (chart_type_28 == "pie") {
chart_28 = webponent.visual.pie.init(jQuery('#webponent_chart_28'), style_28, data_28);
jQuery("#chart_controller").remove();
} else if (chart_type_28 == "tree") {
chart_28 = webponent.visual.treemap.init(jQuery('#webponent_chart_28'), style_28, data_28);
jQuery("#chart_controller").remove();
} else if (chart_type_28 == "horizon") {
chart_28 = webponent.visual.horizon.init(jQuery('#webponent_chart_28'), style_28, data_28);
jQuery("#chart_controller").remove();
} else if (chart_type_28 == "scatter") {
chart_28 = webponent.visual.scatterPlot.init(jQuery('#webponent_chart_28'), style_28, data_28);
jQuery("#chart_controller").remove();
} else {
if(chart_type_28 != "hloc"){
var count =0;
jQuery.each(series_28.main, function (index, value) {
if (index != "type") {
if(chart_type_28 == "line"){
legend_count = count %5;
jQuery("#chart_legends_28").append(legend_style[legend_count][0]+legend_color[count] +legend_style[legend_count][1]+ value.yaxis +'');
}else if(chart_type_28 =="multi_series"){
if(value.series=="line"){
legend_count = count %5;
jQuery("#chart_legends_28").append(legend_style[legend_count][0]+legend_color[count] +legend_style[legend_count][1]+ value.yaxis +'');
}else{
jQuery("#chart_legends_28").append('
' + value.yaxis + '');
}
}else{
if(color_style_28.length){
jQuery("#chart_legends_28").append('
' + value.yaxis + '');
}else{
jQuery("#chart_legends_28").append('
' + value.yaxis + '');
}
}
}
count++;
});
}
chart_28= webponent.chart.init(jQuery('#webponent_chart_28'), data_28, style_28, series_28);
if(slider_28){
if(chart_type_28=="line"||chart_type_28=="column"){
var tmp_x=[];
jQuery("#slider_div_28").attr("style","");
jQuery.each(data_28.data.data,function (index,value){
tmp_x.push(value[Object.keys(value)[0]]);
});
jQuery("#slider-range_28").slider({
range: true,
min: 0,
max: tmp_x.length-1,
values: [ 0, tmp_x.length-1 ],
slide: function( event, ui ) {
jQuery( "#slider-text_28" ).text( "범위 : " + tmp_x[ui.values[ 0 ]] + " - " + tmp_x[ui.values[ 1 ]] );
var tmp_data = JSON.parse(JSON.stringify(data_28)); //object 참조 복사 회피
tmp_data.data.data = tmp_data.data.data.splice(ui.values[ 0 ],ui.values[ 1 ]+1-ui.values[0]);
chart_28.inquery( tmp_data,style_28, series_28);
}
});
jQuery("#slider-text_28").text( "범위 : "+tmp_x[0] + " - " + tmp_x[tmp_x.length-1]);
}
}
}
})