공공부문 SW.ICT 장비 기관별 발주비중

  • 김항규SW기반정책·인재연구실 선임연구원
날짜2024.07.01
조회수17185
글자크기
  • (단위 : %)
    var chart_55; var chart_type_55 = "pie"; jQuery(document).ready(function () { {"data":{"data":[{"구분":"국가기관","비중":"40.0"},{"구분":"공공기관","비중":"45.3"},{"구분":"교육기관","비중":"0.8"},{"구분":"지자체","비중":"13.9"}],"use":"비중"},"legend":{"use":"구분"}} var style = { "layout":{ area : { color : layout_color } }, "pie": { "radius": 70, "area": { "color": [ {src:'/lib/webponent/chart/webPonent-Chart-2.0.6/chart/sample/chart/img/pattern04.png'}, {src:'/lib/webponent/chart/webPonent-Chart-2.0.6/chart/sample/chart/img/pattern02.png'}, {src:'/lib/webponent/chart/webPonent-Chart-2.0.6/chart/sample/chart/img/pattern03.png'}, {src:'/lib/webponent/chart/webPonent-Chart-2.0.6/chart/sample/chart/img/pattern01.png'}, {src:'/lib/webponent/chart/webPonent-Chart-2.0.6/chart/sample/chart/img/pattern05.png'} ] }, "line": { "color": "#eeeeee", "width": 2 }, "animate": { "use": true, "step": 80, "type": "easeInOutExpo" }, "hover": { "use": true, "area": { "color": { "src": "/lib/webponent/chart/webPonent-Chart-2.0.6/chart/sample/chart/img/over.png" } } } } }; var data_55 = data; var style_55 = style; var series_55 = series; if(color_style_55 == undefined){ var color_style_55 = []; } if(slider_55 == undefined ){ var slider_55 =true; } if (chart_type_55 == "pie") { chart_55 = webponent.visual.pie.init(jQuery('#webponent_chart_55'), style_55, data_55); jQuery("#chart_controller").remove(); } else if (chart_type_55 == "tree") { chart_55 = webponent.visual.treemap.init(jQuery('#webponent_chart_55'), style_55, data_55); jQuery("#chart_controller").remove(); } else if (chart_type_55 == "horizon") { chart_55 = webponent.visual.horizon.init(jQuery('#webponent_chart_55'), style_55, data_55); jQuery("#chart_controller").remove(); } else if (chart_type_55 == "scatter") { chart_55 = webponent.visual.scatterPlot.init(jQuery('#webponent_chart_55'), style_55, data_55); jQuery("#chart_controller").remove(); } else { if(chart_type_55 != "hloc"){ var count =0; jQuery.each(series_55.main, function (index, value) { if (index != "type") { if(chart_type_55 == "line"){ legend_count = count %5; jQuery("#chart_legends_55").append(legend_style[legend_count][0]+legend_color[count] +legend_style[legend_count][1]+ value.yaxis +'
  • '); }else if(chart_type_55 =="multi_series"){ if(value.series=="line"){ legend_count = count %5; jQuery("#chart_legends_55").append(legend_style[legend_count][0]+legend_color[count] +legend_style[legend_count][1]+ value.yaxis +''); }else{ jQuery("#chart_legends_55").append('
  • ' + value.yaxis + '
  • '); } }else{ if(color_style_55.length){ jQuery("#chart_legends_55").append('
  • ' + value.yaxis + '
  • '); }else{ jQuery("#chart_legends_55").append('
  • ' + value.yaxis + '
  • '); } } } count++; }); } chart_55= webponent.chart.init(jQuery('#webponent_chart_55'), data_55, style_55, series_55); if(slider_55){ if(chart_type_55=="line"||chart_type_55=="column"){ var tmp_x=[]; jQuery("#slider_div_55").attr("style",""); jQuery.each(data_55.data.data,function (index,value){ tmp_x.push(value[Object.keys(value)[0]]); }); jQuery("#slider-range_55").slider({ range: true, min: 0, max: tmp_x.length-1, values: [ 0, tmp_x.length-1 ], slide: function( event, ui ) { jQuery( "#slider-text_55" ).text( "범위 : " + tmp_x[ui.values[ 0 ]] + " - " + tmp_x[ui.values[ 1 ]] ); var tmp_data = JSON.parse(JSON.stringify(data_55)); //object 참조 복사 회피 tmp_data.data.data = tmp_data.data.data.splice(ui.values[ 0 ],ui.values[ 1 ]+1-ui.values[0]); chart_55.inquery( tmp_data,style_55, series_55); } }); jQuery("#slider-text_55").text( "범위 : "+tmp_x[0] + " - " + tmp_x[tmp_x.length-1]); } } } })
  • 공공부문 SW.ICT 장비 기관별 발주비중(2020년 기준)
    구분 국가기관 공공기관 교육기관 지자체
    var table_42= jQuery("#grid_table_42"); var tmp_template_42 = jQuery("#grid_template_42").html(); if(tmp_template_42.split("/*").length>1){ tmp_template_42 =tmp_template_42.substring(13,tmp_template_42.length-7); } jQuery("#grid_template_42").html(tmp_template_42); var template_42 =jQuery("#grid_template_42"); var data_42 =[{"s0":"금액","s1":"18,924","s2":"21,450","s3":"386","s4":"6,567","s5":"47,326"},{"s0":"비중","s1":"40%","s2":"45.3%","s3":"0.8%","s4":"13.9%","s5":"100.0%"}]; var grid_42; jQuery(document).ready(function () { jQuery.each(data_42 , function(idx,value){ var tmp_object = value; var objectKey = Object.keys(value); jQuery.each(objectKey,function(idx2,value2){ if(jQuery.isNumeric(value[idx2])){ tmp_object[value2]=parseFloat(value[idx2]).toLocaleString(); } }); }); if(1 == 1){ var grid_sortable = true; }else{ var grid_sortable = false; }; grid_42 = webponent.grid.init(table_42,template_42, {sortable:grid_sortable}); var collapseKeys_42 = Object.keys(data_42[0]); grid_42.event.on('dataRendered', function () { var dataList = grid_42.data; var renderingStartRowIndex = grid_42.settings.defferedRendering.renderingStartRowIndex; var renderingEndRowIndex = grid_42.settings.defferedRendering.renderingEndRowIndex; if (renderingStartRowIndex === null) { renderingStartRowIndex = 0; } if (renderingEndRowIndex === null) { renderingEndRowIndex = grid_42.data.length; } else { renderingEndRowIndex ++; } var prevTdMap = {}; var prevDataMap = {}; var prevRowspanMap = {}; for (var i = renderingStartRowIndex; i < renderingEndRowIndex; i ++) { var data = dataList[i]; _.each(collapseKeys_42 , function (collapseKey) { var row = jQuery(grid_42.rows[i]); var td = row.find('[data-name=' + collapseKey + ']'); var prevTd = prevTdMap[collapseKey]; if (!prevTd) { td.attr('rowspan', '1'); td.addClass('CI-GRID-BORDER-RIGHT'); prevTdMap[collapseKey] = td; prevDataMap[collapseKey] = data[collapseKey]; prevRowspanMap[collapseKey] = 1; } else { if (!jQuery.isNumeric(data[collapseKey])&&prevDataMap[collapseKey] === data[collapseKey]) { prevTdMap[collapseKey].attr('rowspan', prevRowspanMap[collapseKey] + 1); prevRowspanMap[collapseKey] ++; td.remove(); } else { td.attr('rowspan', '1'); td.addClass('CI-GRID-BORDER-RIGHT'); prevTdMap[collapseKey] = td; prevDataMap[collapseKey] = data[collapseKey]; prevRowspanMap[collapseKey] = 1; } } }); } }); grid_42.appendRow(data_42); grid_42.setGridHeight(0); //var header_caption_42 = grid_42.markup.main.header.table.createCaption(); //header_caption_42.innerHTML = "공공부문 SW.ICT 장비 기관별 발주비중(2024년 기준) "; //header_caption_42.className += " blind"; var header_td_42 = grid_42.markup.main.header.table; //console.log($(header_td_42).html()); $(header_td_42).find('.CI-GRID-SORTER').attr('title', '이 컬럼을 소트하려면 클릭 또는 엔터키를 눌러 주세요.\(쉬프트키를 누르면서 클릭 또는 엔터키를 눌러 주시면 멀티소팅이 됩니다.\) '); $('.CI-GRID-FOCUS-ESCAPER').remove(); });
  • 자료) NIPA 공공 SW·ICT장비 수요예보(확정) 결과(2024.4)