지역별 SW 기업 현황
(단위 : %)
var chart_43;
var chart_type_43 = "pie";
jQuery(document).ready(function () {
{"data":{"data":[{"구분":"서울","비중(%)":"49.2"},{"구분":"경기","비중(%)":"28.7"},{"구분":"인천","비중(%)":"3.5"},{"구분":"부산, 경남, 울산","비중(%)":"5.1"},{"구분":"대구, 경북","비중(%)":"3.1"},{"구분":"전북, 광주, 전남, 제주","비중(%)":"3.6"},{"구분":"강원, 충북, 대전, 세종, 충남","비중(%)":"6.8"}],"use":"비중(%)"},"legend":{"use":"구분"}}
var style = {
"layout":{
"position" : {
y : 30
},
"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'},
{src:'/lib/webponent/chart/webPonent-Chart-2.0.6/chart/sample/visual/img/horizon_pattern1.png'},
{src:'/lib/webponent/chart/webPonent-Chart-2.0.6/chart/sample/visual/img/horizon_pattern2.png'},
{src:'/lib/webponent/chart/webPonent-Chart-2.0.6/chart/sample/visual/img/horizon_pattern3.png'},
{src:'/lib/webponent/chart/webPonent-Chart-2.0.6/chart/sample/visual/img/horizon_pattern4.png'},
{src:'/lib/webponent/chart/webPonent-Chart-2.0.6/chart/sample/visual/img/pie_pattern1.png'},
{src:'/lib/webponent/chart/webPonent-Chart-2.0.6/chart/sample/visual/img/pie_pattern2.png'},
{src:'/lib/webponent/chart/webPonent-Chart-2.0.6/chart/sample/visual/img/pie_pattern3.png'},
{src:'/lib/webponent/chart/webPonent-Chart-2.0.6/chart/sample/visual/img/pie_pattern4.png'},
{src:'/lib/webponent/chart/webPonent-Chart-2.0.6/chart/sample/visual/img/pie_pattern5.png'},
{src:'/lib/webponent/chart/webPonent-Chart-2.0.6/chart/sample/visual/img/pie_pattern6.png'},
{src:'/lib/webponent/chart/webPonent-Chart-2.0.6/chart/sample/visual/img/pie_pattern7.png'},
{src:'/lib/webponent/chart/webPonent-Chart-2.0.6/chart/sample/visual/img/pie_pattern8.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_43 = data;
var style_43 = style;
var series_43 = series;
if(color_style_43 == undefined){
var color_style_43 = [];
}
if(slider_43 == undefined ){
var slider_43 =true;
}
if (chart_type_43 == "pie") {
chart_43 = webponent.visual.pie.init(jQuery('#webponent_chart_43'), style_43, data_43);
jQuery("#chart_controller").remove();
} else if (chart_type_43 == "tree") {
chart_43 = webponent.visual.treemap.init(jQuery('#webponent_chart_43'), style_43, data_43);
jQuery("#chart_controller").remove();
} else if (chart_type_43 == "horizon") {
chart_43 = webponent.visual.horizon.init(jQuery('#webponent_chart_43'), style_43, data_43);
jQuery("#chart_controller").remove();
} else if (chart_type_43 == "scatter") {
chart_43 = webponent.visual.scatterPlot.init(jQuery('#webponent_chart_43'), style_43, data_43);
jQuery("#chart_controller").remove();
} else {
if(chart_type_43 != "hloc"){
var count =0;
jQuery.each(series_43.main, function (index, value) {
if (index != "type") {
if(chart_type_43 == "line"){
legend_count = count %5;
jQuery("#chart_legends_43").append(legend_style[legend_count][0]+legend_color[count] +legend_style[legend_count][1]+ value.yaxis +'');
}else if(chart_type_43 =="multi_series"){
if(value.series=="line"){
legend_count = count %5;
jQuery("#chart_legends_43").append(legend_style[legend_count][0]+legend_color[count] +legend_style[legend_count][1]+ value.yaxis +'');
}else{
jQuery("#chart_legends_43").append('
' + value.yaxis + '');
}
}else{
if(color_style_43.length){
jQuery("#chart_legends_43").append('
' + value.yaxis + '');
}else{
jQuery("#chart_legends_43").append('
' + value.yaxis + '');
}
}
}
count++;
});
}
chart_43= webponent.chart.init(jQuery('#webponent_chart_43'), data_43, style_43, series_43);
if(slider_43){
if(chart_type_43=="line"||chart_type_43=="column"){
var tmp_x=[];
jQuery("#slider_div_43").attr("style","");
jQuery.each(data_43.data.data,function (index,value){
tmp_x.push(value[Object.keys(value)[0]]);
});
jQuery("#slider-range_43").slider({
range: true,
min: 0,
max: tmp_x.length-1,
values: [ 0, tmp_x.length-1 ],
slide: function( event, ui ) {
jQuery( "#slider-text_43" ).text( "범위 : " + tmp_x[ui.values[ 0 ]] + " - " + tmp_x[ui.values[ 1 ]] );
var tmp_data = JSON.parse(JSON.stringify(data_43)); //object 참조 복사 회피
tmp_data.data.data = tmp_data.data.data.splice(ui.values[ 0 ],ui.values[ 1 ]+1-ui.values[0]);
chart_43.inquery( tmp_data,style_43, series_43);
}
});
jQuery("#slider-text_43").text( "범위 : "+tmp_x[0] + " - " + tmp_x[tmp_x.length-1]);
}
}
}
})