6-3-3. 대표사업별 이러닝 사업자 수
(단위 : 개)
var chart_154;
var chart_type_154 = "stack_column";
jQuery(document).ready(function () {
{"data":{"data":[{"구분":"2019년","콘텐츠":"431","솔루션":"253","서비스":"1127"},{"구분":"2020년","콘텐츠":"463","솔루션":"279","서비스":"1163"},{"구분":"2021년","콘텐츠":"459","솔루션":"314","서비스":"1340"},{"구분":"2022년","콘텐츠":"519","솔루션":"356","서비스":"1518"},{"구분":"2023년","콘텐츠":"544","솔루션":"405","서비스":"1557"}]},"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: 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_154 = data;
var style_154 = style;
var series_154 = series;
if(color_style_154 == undefined){
var color_style_154 = [];
}
if(slider_154 == undefined ){
var slider_154 =true;
}
if (chart_type_154 == "pie") {
chart_154 = webponent.visual.pie.init(jQuery('#webponent_chart_154'), style_154, data_154);
jQuery("#chart_controller").remove();
} else if (chart_type_154 == "tree") {
chart_154 = webponent.visual.treemap.init(jQuery('#webponent_chart_154'), style_154, data_154);
jQuery("#chart_controller").remove();
} else if (chart_type_154 == "horizon") {
chart_154 = webponent.visual.horizon.init(jQuery('#webponent_chart_154'), style_154, data_154);
jQuery("#chart_controller").remove();
} else if (chart_type_154 == "scatter") {
chart_154 = webponent.visual.scatterPlot.init(jQuery('#webponent_chart_154'), style_154, data_154);
jQuery("#chart_controller").remove();
} else {
if(chart_type_154 != "hloc"){
var count =0;
jQuery.each(series_154.main, function (index, value) {
if (index != "type") {
if(chart_type_154 == "line"){
legend_count = count %5;
jQuery("#chart_legends_154").append(legend_style[legend_count][0]+legend_color[count] +legend_style[legend_count][1]+ value.yaxis +'');
}else if(chart_type_154 =="multi_series"){
if(value.series=="line"){
legend_count = count %5;
jQuery("#chart_legends_154").append(legend_style[legend_count][0]+legend_color[count] +legend_style[legend_count][1]+ value.yaxis +'');
}else{
jQuery("#chart_legends_154").append('
' + value.yaxis + '');
}
}else{
if(color_style_154.length){
jQuery("#chart_legends_154").append('
' + value.yaxis + '');
}else{
jQuery("#chart_legends_154").append('
' + value.yaxis + '');
}
}
}
count++;
});
}
chart_154= webponent.chart.init(jQuery('#webponent_chart_154'), data_154, style_154, series_154);
if(slider_154){
if(chart_type_154=="line"||chart_type_154=="column"){
var tmp_x=[];
jQuery("#slider_div_154").attr("style","");
jQuery.each(data_154.data.data,function (index,value){
tmp_x.push(value[Object.keys(value)[0]]);
});
jQuery("#slider-range_154").slider({
range: true,
min: 0,
max: tmp_x.length-1,
values: [ 0, tmp_x.length-1 ],
slide: function( event, ui ) {
jQuery( "#slider-text_154" ).text( "범위 : " + tmp_x[ui.values[ 0 ]] + " - " + tmp_x[ui.values[ 1 ]] );
var tmp_data = JSON.parse(JSON.stringify(data_154)); //object 참조 복사 회피
tmp_data.data.data = tmp_data.data.data.splice(ui.values[ 0 ],ui.values[ 1 ]+1-ui.values[0]);
chart_154.inquery( tmp_data,style_154, series_154);
}
});
jQuery("#slider-text_154").text( "범위 : "+tmp_x[0] + " - " + tmp_x[tmp_x.length-1]);
}
}
}
})