123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125 |
- $(function () {
- BWA.ChartOptions = BWA.ChartOptions || {};
- BWA.ChartOptions.PowerSavingCycle = BWA.ChartOptions.PowerSavingCycle || {};
- BWA.ChartOptions.PowerSavingCycle.getChartTempOnOFFOptions = function (codeTimeType) {
- return {
- palette: 'Bright',
- legend: {
- visible: true,
- verticalAlignment: 'top',
- horizontalAlignment: 'center'
- },
- argumentAxis:
- {
- valueMarginsEnabled: false,
- argumentType: 'datetime',
- label: {
- alignment: 'center',
- format: 'HH시-mm분'
- },
- tickInterval: { minutes: 15 },
- },
- commonSeriesSettings: {
- argumentField: 'DateTime',
- selectionStyle: {
- hatching: {
- direction: 'left'
- }
- }
- },
- valueAxis: [
- {
- name: 'temp',
- position: 'left',
- pane: 'topPane',
- type: 'continuous',
- valueType: 'numeric',
- valueMarginsEnabled: true,
- label: {
- },
- title: {
- text: '온도 (°C)',
- }
- },
- {
- label: {
- },
- name: 'onoff',
- tickInterval: 1,
- min: 0,
- max: 1,
- position: 'right',
- title: {
- text: '공조기 ON/OFF',
- }
- }
- ],
- series: [
- {
- type: 'rangeArea',
- rangeValue1Field: 'Mintemp',
- rangeValue2Field: 'Maxtemp',
- axis: 'temp',
- visible: true,
- point: { size: 8 },
- name: '목표실내온도',
- color: 'red',
- label: {
- visible: false,
- customizeText: function () {
- return this.valueText + ' °C';
- }
- }
- },
- {
- type: 'bar',
- valueField: 'Indooronoff',
- axis: 'onoff',
- point: { size: 8 },
- name: '공조기 On/Off',
- label: {
- visible: false,
- customizeText: function () {
- return this.valueText;
- }
- }
- },
- {
- type: 'spline',
- valueField: 'IndoorTemp',
- axis: 'temp',
- visible: true,
- point: { size: 8 },
- name: '실내온도',
- color: '#c96374',
- label: {
- visible: false,
- customizeText: function () {
- return this.valueText + ' °C';
- }
- }
- }
- ],
- tooltip: {
- enabled: true,
- color: "#3e1717",
- format: 'fixedPoint',
- precision: 2,
- font: {
- color: "white",
- size: 12,
- weight: 600,
- },
- argumentFormat: 'shortDate',
- customizeText: function () {
- return {
- text: [this.argumentText, ': ', this.valueText].join('')
- };
- }
- }
- };
- };
- });
|