123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239 |
- $(function() {
- BWA.ChartOptions = BWA.ChartOptions || {};
- var A = BWA.ChartOptions.RefrigeratorAnalysis = BWA.ChartOptions.RefrigeratorAnalysis || {};
- var valueAxises = [
- {
- title: {
- //text: $G('coolingApproach')
- text: $G('outdoorTemperatureWithUnit')
- }
- },
- {
- //pane: 'topPane',
- name: 'intemp',
- position: 'right',
- //valueMarginsEnabled: true,
- //minValueMargin: 0,
- //maxValueMargin: 0,
- //min: -20,
- //max: 40,
- label: {
- font: { color: '#c96374' },
- visible: true,
- //format: 'largeNumber'
- },
- title: {
- //text: '냉각수 입구온도 (°C)' 2016 07 15
- text: '냉각탑 출구온도 (°C)'
- }
- }, {
- //pane: 'topPane',
- name: 'outtemp',
- //min: 0,
- //max: 100,
- position: 'right',
- grid: {
- visible: true
- },
- label: {
- font: { color: '#00A7C6' },
- visible: true,
- //format: 'largeNumber'
- },
- title: {
- //text: '냉각수 출구온도 (°C)'2016 07 15
- text: '냉각탑 입구온도 (°C)'
- }
- }, {
- //pane: 'topPane',
- name: 'htemp',
- //min: 0,
- //max: 100,
- position: 'right',
- grid: {
- visible: true
- },
- label: {
- font: { color: 'darkgreen' },
- visible: true,
- //format: 'largeNumber'
- },
- title: {
- text: '습구온도 (°C)'
- }
- }];
- var seriesS = [
- {
- //type: 'bar',
- type: 'spline',
- argumentField: 'DateTime',
- valueField: 'Value',
- //width: 5,
- //valueField: 'h_temp',
- name: '외기온도',
- label: {
- visible: false,
- },
- point: { size: 1 }
- },
- {
- type: 'spline',
- color: '#c96374',
- //pane: 'topPane',
- // axis: 'intemp',
- valueField: 'c_in_temp',
- point: { size: 1 },
- //name: '냉각수 입구온도', 2016 07 15
- name: '냉각탑 츨구온도',
- label: {
- visible: false,
- font: { color: '#c96374', },
- customizeText: function () {
- return this.valueText + ' °C';
- }
- }
- }, {
- type: 'spline',
- //pane: 'topPane',
- // axis: 'outtemp',
- color: '#00A7C6',
- valueField: 'c_out_temp',
- point: { size: 1 },
- //name: '냉각수 출구온도', 2016 07 15
- name: '냉각탑 입구온도',
- label: {
- font: { color: '#00A7C6', },
- visible: false,
- customizeText: function () {
- return this.valueText + ' °C';
- }
- }
- }, {
- type: 'spline',
- // pane: 'topPane',
- // axis: 'htemp',
- color: 'darkgreen',
- valueField: 'h_temp',
- point: { size: 1 },
- name: '습구온도',
- label: {
- font: { color: 'darkgreen', },
- visible: false,
- customizeText: function () {
- return this.valueText + ' °C';
- }
- }
- }];
-
- A.getCoolingApproachSeriesOptions = function (ck1, ck2, ck3) {
- /*
- var returnvar : {
- var series = [];
- var valueAxis = [];
- }; */
- var series = [];
- series.push(seriesS[0]);
- if (ck1) {
- series.push(seriesS[1]);
- }
- if (ck2) {
- series.push(seriesS[2]);
- }
- if (ck3) {
- series.push(seriesS[3]);
- }
- return series;
- };
- A.getCoolingApproachvalueAxisOptions = function (ck1, ck2, ck3) {
-
- var valueAxis = [];
- valueAxis.push(valueAxises[0]);
- if (ck1) {
- valueAxis.push(valueAxises[1]);
- }
- if (ck2) {
- valueAxis.push(valueAxises[2]);
- }
- if (ck3) {
- valueAxis.push(valueAxises[3]);
- }
- return valueAxis;
- };
- A.getCoolingApproachChartOptions = function(codeTimeType) {
- return {
- palette: 'Default',
- legend: {
- visible: true,
- verticalAlignment: 'top',
- horizontalAlignment: 'center'
- },
- //argumentAxis: BWA.Chart.getTimeLineArgumentAxis(null, codeTimeType),
- commonSeriesSettings: {
- argumentField: "DateTime",
- selectionStyle: {
- hatching: {
- direction: "left"
- }
- }
- },
- //valueAxis: valueAxises,
- valueAxis: {
- valueMarginsEnabled: true,
- //position: 'right',
- //minValueMargin: 0,
- //maxValueMargin: 0,
- //min: -20,
- //max: 40,
- title: {
- //text: $G('coolingApproach')
- //text: $G('outdoorTemperatureWithUnit')
- text: '온도 (°C)'
- }
- },
- series: seriesS,
- tooltip: {
- enabled: true,
- },
- crosshair: {
- enabled: true,
- width: 2,
- horizontalLine: {
- color: 'red',
- dashStyle: 'dash',
- visible: false
- },
- verticalLine: {
- color: 'black',
- dashStyle: 'dash',
- visible: true
- },
- label: {
- visible: true,
- backgroundColor: "#949494",
- font: {
- color: "#fff",
- size: 12,
- }
- }
- }
- };
- };
- });
|