SW 신기술 도입 현황
(단위 : %)
var chart_142;
var chart_type_142 = "stack_column";
jQuery(document).ready(function () {
{"data":{"data":[{"년도":"클라우드 컴퓨팅","2024년":"17.3"},{"년도":"사물인터넷 (스마트센서 포함)","2024년":"9.0"},{"년도":"빅데이터","2024년":"8.1"},{"년도":"인공지능","2024년":"2.1"},{"년도":"인공지능","2024년":"1.2"},{"년도":"블록체인","2024년":"0.7"},{"년도":"없다","2024년":"75.3"}]},"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.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: layout_color,
line: {color: '#eaeaea', width: 1}
},
graph: {
color: '#f8f8f8',
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'}
},
tip: {
className: 'tip'
},
series: {
s1: {
area: {
normal: {
color: {src:pattern_style[0]},
over: over_img
}
}
},
s2: {
area: {
normal: {
color: {src:pattern_style[1]},
over: over_img
}
}
},
s3: {
area: {
normal: {
color: {src:pattern_style[2]},
over: over_img
}
}
},
s4: {
area: {
normal: {
color: {src:pattern_style[3]},
over: over_img
}
}
},
s5: {
area: {
normal: {
color: {src:pattern_style[4]},
over: over_img
}
}
}
}
}
};
var data_142 = data;
var style_142 = style;
var series_142 = series;
if(color_style_142 == undefined){
var color_style_142 = [];
}
if(slider_142 == undefined ){
var slider_142 =true;
}
if (chart_type_142 == "pie") {
chart_142 = webponent.visual.pie.init(jQuery('#webponent_chart_142'), style_142, data_142);
jQuery("#chart_controller").remove();
} else if (chart_type_142 == "tree") {
chart_142 = webponent.visual.treemap.init(jQuery('#webponent_chart_142'), style_142, data_142);
jQuery("#chart_controller").remove();
} else if (chart_type_142 == "horizon") {
chart_142 = webponent.visual.horizon.init(jQuery('#webponent_chart_142'), style_142, data_142);
jQuery("#chart_controller").remove();
} else if (chart_type_142 == "scatter") {
chart_142 = webponent.visual.scatterPlot.init(jQuery('#webponent_chart_142'), style_142, data_142);
jQuery("#chart_controller").remove();
} else {
if(chart_type_142 != "hloc"){
var count =0;
jQuery.each(series_142.main, function (index, value) {
if (index != "type") {
if(chart_type_142 == "line"){
legend_count = count %5;
jQuery("#chart_legends_142").append(legend_style[legend_count][0]+legend_color[count] +legend_style[legend_count][1]+ value.yaxis +'');
}else if(chart_type_142 =="multi_series"){
if(value.series=="line"){
legend_count = count %5;
jQuery("#chart_legends_142").append(legend_style[legend_count][0]+legend_color[count] +legend_style[legend_count][1]+ value.yaxis +'');
}else{
jQuery("#chart_legends_142").append('
' + value.yaxis + '');
}
}else{
if(color_style_142.length){
jQuery("#chart_legends_142").append('
' + value.yaxis + '');
}else{
jQuery("#chart_legends_142").append('
' + value.yaxis + '');
}
}
}
count++;
});
}
chart_142= webponent.chart.init(jQuery('#webponent_chart_142'), data_142, style_142, series_142);
if(slider_142){
if(chart_type_142=="line"||chart_type_142=="column"){
var tmp_x=[];
jQuery("#slider_div_142").attr("style","");
jQuery.each(data_142.data.data,function (index,value){
tmp_x.push(value[Object.keys(value)[0]]);
});
jQuery("#slider-range_142").slider({
range: true,
min: 0,
max: tmp_x.length-1,
values: [ 0, tmp_x.length-1 ],
slide: function( event, ui ) {
jQuery( "#slider-text_142" ).text( "범위 : " + tmp_x[ui.values[ 0 ]] + " - " + tmp_x[ui.values[ 1 ]] );
var tmp_data = JSON.parse(JSON.stringify(data_142)); //object 참조 복사 회피
tmp_data.data.data = tmp_data.data.data.splice(ui.values[ 0 ],ui.values[ 1 ]+1-ui.values[0]);
chart_142.inquery( tmp_data,style_142, series_142);
}
});
jQuery("#slider-text_142").text( "범위 : "+tmp_x[0] + " - " + tmp_x[tmp_x.length-1]);
}
}
}
})