123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139 |
- $(function() {
- BWA.ChartOptions = BWA.ChartOptions || {};
- BWA.ChartOptions.EnergySavingControl = BWA.ChartOptions.EnergySavingControl || {};
- BWA.ChartOptions.EnergySavingControl.getChartControlSetOptions = function (codeTimeType) {
- return {
- //palette: 'Harmony Light',
- palette: 'Bright',
- legend: {
- visible: true,
- verticalAlignment: 'top',
- horizontalAlignment: 'center'
- },
- //argumentAxis: BWA.Chart.getTimeLineArgumentAxis(null, codeTimeType),
- commonSeriesSettings: {
- argumentField: 'DateTime',
- selectionStyle: {
- hatching: {
- direction: 'left'
- }
- }
- },
- valueAxis: [
- {
- name: 'temp', //
- position: 'left',
- type: 'continuous',
- valueType: 'numeric',
- tickInterval: 10,
- valueMarginsEnabled: true,
- minValueMargin: 0,
- maxValueMargin: 0,
- min: -10,
- max: 40,
- label: {
- //font: { color: '#c96374' },
- },
- title: {
- text: '온도 (°C)',
- },
- },
- {
- tickInterval: 20,
- valueMarginsEnabled: true,
- minValueMargin: 0,
- maxValueMargin: 0,
- //argumentType: 'numeric',
- min: 0,
- max: 100,
- label: {
- //font: { color: '#00A7C6' },
- },
- name: 'humi', //
- position: 'right',
- title: {
- text: '습도 (%)',
- }
- }
- ],
- series: [
- {
- type: 'spline',
- //pane: 'topPane',
- axis: 'temp',
- valueField: 'temp',
- visible: true, // 시리즈만 안보이게 할수 있다. 대신 그렇게 할려면 시작은 false로 해야 한다 hcLee 2015 04 25
- point: { size: 8 },
- name: '실내온도',
- color: '#c96374',
- label: {
- visible: false,
- customizeText: function () {
- return this.valueText + ' °C';
- }
- }
- }, {
- type: 'bar',
- //pane: 'topPane',
- axis: 'humi',
- valueField: 'humi',
- point: { size: 8 },
- name: '실내습도',
- color: '#00A7C6',
- label: {
- visible: false,
- customizeText: function () {
- return this.valueText + ' %';
- }
- }
- },
- {
- type: 'spline',
- //pane: 'topPane',
- axis: 'temp',
- valueField: 'out_temp',
- visible: true, // 시리즈만 안보이게 할수 있다. 대신 그렇게 할려면 시작은 false로 해야 한다 hcLee 2015 04 25
- point: { size: 8 },
- name: '실외온도',
- //color: '#c96374',
- label: {
- visible: false,
- customizeText: function () {
- return this.valueText + ' °C';
- }
- }
- }, {
- type: 'bar',
- //pane: 'topPane',
- axis: 'humi',
- valueField: 'out_humi',
- point: { size: 8 },
- name: '실외습도',
- //color: '#00A7C6',
- label: {
- visible: false,
- customizeText: function () {
- return this.valueText + ' %';
- }
- }
- }
- ],
- tooltip: {
- enabled: true,
- },
- };
- }
- });
|