/**************************************
* 버튼 컨트롤이 클릭되는 시점에 발생합니다.
* * arguments :
* string Id (Readonly:False) : 컨트롤이름
* string Text (Readonly:False) : 라벨 값
**************************************/
var OnButtonClick = function(sender, args){
if(args.Id == 'btn_default_add'){
var newSeries = Chart.AddSeries();
newSeries.ValueField = '판매단가';
Matrix.doRefresh('Chart');
}
if(args.Id == 'btn_default_remove'){
Chart.RemoveSeries('Series6');
Matrix.doRefresh('Chart');
}
if(args.Id == 'btn_default_clear'){
Chart.ClearSeries();
Matrix.doRefresh('Chart');
}
if(args.Id == 'btn_polygon_add'){
var newSeries = PolygonChart.AddSeries();
newSeries.ValueField = '판매단가';
Matrix.doRefresh('PolygonChart');
}
if(args.Id == 'btn_polygon_remove'){
PolygonChart.RemoveSeries('Series6');
Matrix.doRefresh('PolygonChart');
}
if(args.Id == 'btn_polygon_clear'){
PolygonChart.ClearSeries();
Matrix.doRefresh('PolygonChart');
}
if(args.Id == 'btn_scatter_add'){
var newSeries = ScatterChart.AddSeries();
newSeries.SeriesX = ScatterChart.FieldInfo.Get('V');
newSeries.SeriesY = ScatterChart.FieldInfo.Get('C');
newSeries.LabelSeries = ScatterChart.FieldInfo.Get('C');
Matrix.doRefresh('ScatterChart');
}
if(args.Id == 'btn_scatter_remove'){
ScatterChart.RemoveSeries('Series2');
Matrix.doRefresh('ScatterChart');
}
if(args.Id == 'btn_scatter_clear'){
ScatterChart.ClearSeries();
Matrix.doRefresh('ScatterChart');
}
}; |