SW기술자 평균임금_그래프
(단위 : 만원)
var chart_35;
var chart_type_35 = "column";
jQuery(document).ready(function () {
{"data":{"data":[{"2023년":"48","구분":"1. IT기획자"},{"2023년":"48","구분":"2. IT컨설턴트"},{"2023년":"53","구분":"3. 업무분석가"},{"2023년":"38","구분":"4. 데이터분석가"},{"2023년":"46","구분":"5. IT PM"},{"2023년":"53","구분":"6. IT 아키텍트"},{"2023년":"32","구분":"7. UI\/UX기획\/개발자"},{"2023년":"22","구분":"8. UI\/UX디자이너"},{"2023년":"34","구분":"9. 응용SW개발자"},{"2023년":"28","구분":"10. 시스템SW개발자"}]},"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.yaxisname) + ' / ' + String(data.yaxis) + '
';
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": "#ff8e1f",
"over": {
"color": {
"src": "/lib/webponent/chart/webPonent-Chart-2.0.6/chart/sample/chart/img/over.png"
}
}
}
}
},
"s5": {
"area": {
"normal": {
"color": "#7badff",
"over": {
"color": {
"src": "/lib/webponent/chart/webPonent-Chart-2.0.6/chart/sample/chart/img/over.png"
}
}
}
}
},
"s6": {
"area": {
"normal": {
"color": "#6763ff",
"over": {
"color": {
"src": "/lib/webponent/chart/webPonent-Chart-2.0.6/chart/sample/chart/img/over.png"
}
}
}
}
},
"s7": {
"area": {
"normal": {
"color": "#ff6e6e",
"over": {
"color": {
"src": "/lib/webponent/chart/webPonent-Chart-2.0.6/chart/sample/chart/img/over.png"
}
}
}
}
},
"s8": {
"area": {
"normal": {
"color": "#c5c5c5",
"over": {
"color": {
"src": "/lib/webponent/chart/webPonent-Chart-2.0.6/chart/sample/chart/img/over.png"
}
}
}
}
},
}
}
};
var data_35 = data;
var style_35 = style;
var series_35 = series;
if(color_style_35 == undefined){
var color_style_35 = [];
}
if(slider_35 == undefined ){
var slider_35 =true;
}
if (chart_type_35 == "pie") {
chart_35 = webponent.visual.pie.init(jQuery('#webponent_chart_35'), style_35, data_35);
jQuery("#chart_controller").remove();
} else if (chart_type_35 == "tree") {
chart_35 = webponent.visual.treemap.init(jQuery('#webponent_chart_35'), style_35, data_35);
jQuery("#chart_controller").remove();
} else if (chart_type_35 == "horizon") {
chart_35 = webponent.visual.horizon.init(jQuery('#webponent_chart_35'), style_35, data_35);
jQuery("#chart_controller").remove();
} else if (chart_type_35 == "scatter") {
chart_35 = webponent.visual.scatterPlot.init(jQuery('#webponent_chart_35'), style_35, data_35);
jQuery("#chart_controller").remove();
} else {
if(chart_type_35 != "hloc"){
var count =0;
jQuery.each(series_35.main, function (index, value) {
if (index != "type") {
if(chart_type_35 == "line"){
legend_count = count %5;
jQuery("#chart_legends_35").append(legend_style[legend_count][0]+legend_color[count] +legend_style[legend_count][1]+ value.yaxis +'');
}else if(chart_type_35 =="multi_series"){
if(value.series=="line"){
legend_count = count %5;
jQuery("#chart_legends_35").append(legend_style[legend_count][0]+legend_color[count] +legend_style[legend_count][1]+ value.yaxis +'');
}else{
jQuery("#chart_legends_35").append('
' + value.yaxis + '');
}
}else{
if(color_style_35.length){
jQuery("#chart_legends_35").append('
' + value.yaxis + '');
}else{
jQuery("#chart_legends_35").append('
' + value.yaxis + '');
}
}
}
count++;
});
}
chart_35= webponent.chart.init(jQuery('#webponent_chart_35'), data_35, style_35, series_35);
if(slider_35){
if(chart_type_35=="line"||chart_type_35=="column"){
var tmp_x=[];
jQuery("#slider_div_35").attr("style","");
jQuery.each(data_35.data.data,function (index,value){
tmp_x.push(value[Object.keys(value)[0]]);
});
jQuery("#slider-range_35").slider({
range: true,
min: 0,
max: tmp_x.length-1,
values: [ 0, tmp_x.length-1 ],
slide: function( event, ui ) {
jQuery( "#slider-text_35" ).text( "범위 : " + tmp_x[ui.values[ 0 ]] + " - " + tmp_x[ui.values[ 1 ]] );
var tmp_data = JSON.parse(JSON.stringify(data_35)); //object 참조 복사 회피
tmp_data.data.data = tmp_data.data.data.splice(ui.values[ 0 ],ui.values[ 1 ]+1-ui.values[0]);
chart_35.inquery( tmp_data,style_35, series_35);
}
});
jQuery("#slider-text_35").text( "범위 : "+tmp_x[0] + " - " + tmp_x[tmp_x.length-1]);
}
}
}
})