CMMI 수준별 인증 취득 현황(한국)
(단위 : 건)
var chart_58;
var chart_type_58 = "pie";
jQuery(document).ready(function () {
{"data":{"data":[{"국가":"level 1","한국":"0.0"},{"국가":"level 2","한국":"16.7"},{"국가":"level 3","한국":"56.3"},{"국가":"level 4","한국":"8.3"},{"국가":"level 5","한국":"18.8"}],"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_58 = data;
var style_58 = style;
var series_58 = series;
if(color_style_58 == undefined){
var color_style_58 = [];
}
if(slider_58 == undefined ){
var slider_58 =true;
}
if (chart_type_58 == "pie") {
chart_58 = webponent.visual.pie.init(jQuery('#webponent_chart_58'), style_58, data_58);
jQuery("#chart_controller").remove();
} else if (chart_type_58 == "tree") {
chart_58 = webponent.visual.treemap.init(jQuery('#webponent_chart_58'), style_58, data_58);
jQuery("#chart_controller").remove();
} else if (chart_type_58 == "horizon") {
chart_58 = webponent.visual.horizon.init(jQuery('#webponent_chart_58'), style_58, data_58);
jQuery("#chart_controller").remove();
} else if (chart_type_58 == "scatter") {
chart_58 = webponent.visual.scatterPlot.init(jQuery('#webponent_chart_58'), style_58, data_58);
jQuery("#chart_controller").remove();
} else {
if(chart_type_58 != "hloc"){
var count =0;
jQuery.each(series_58.main, function (index, value) {
if (index != "type") {
if(chart_type_58 == "line"){
legend_count = count %5;
jQuery("#chart_legends_58").append(legend_style[legend_count][0]+legend_color[count] +legend_style[legend_count][1]+ value.yaxis +'');
}else if(chart_type_58 =="multi_series"){
if(value.series=="line"){
legend_count = count %5;
jQuery("#chart_legends_58").append(legend_style[legend_count][0]+legend_color[count] +legend_style[legend_count][1]+ value.yaxis +'');
}else{
jQuery("#chart_legends_58").append('
' + value.yaxis + '');
}
}else{
if(color_style_58.length){
jQuery("#chart_legends_58").append('
' + value.yaxis + '');
}else{
jQuery("#chart_legends_58").append('
' + value.yaxis + '');
}
}
}
count++;
});
}
chart_58= webponent.chart.init(jQuery('#webponent_chart_58'), data_58, style_58, series_58);
if(slider_58){
if(chart_type_58=="line"||chart_type_58=="column"){
var tmp_x=[];
jQuery("#slider_div_58").attr("style","");
jQuery.each(data_58.data.data,function (index,value){
tmp_x.push(value[Object.keys(value)[0]]);
});
jQuery("#slider-range_58").slider({
range: true,
min: 0,
max: tmp_x.length-1,
values: [ 0, tmp_x.length-1 ],
slide: function( event, ui ) {
jQuery( "#slider-text_58" ).text( "범위 : " + tmp_x[ui.values[ 0 ]] + " - " + tmp_x[ui.values[ 1 ]] );
var tmp_data = JSON.parse(JSON.stringify(data_58)); //object 참조 복사 회피
tmp_data.data.data = tmp_data.data.data.splice(ui.values[ 0 ],ui.values[ 1 ]+1-ui.values[0]);
chart_58.inquery( tmp_data,style_58, series_58);
}
});
jQuery("#slider-text_58").text( "범위 : "+tmp_x[0] + " - " + tmp_x[tmp_x.length-1]);
}
}
}
})