123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118 |
- $(function() {
- BWA.ChartOptions = BWA.ChartOptions || {};
- BWA.ChartOptions.WaterCoolingAnalysis = BWA.ChartOptions.WaterCoolingAnalysis || {};
- BWA.ChartOptions.WaterCoolingAnalysis.getTemperatureElectricityOptions = function(codeTimeType) {
- return {
- palette: 'Harmony Light',
- legend: {
- visible: true,
- verticalAlignment: 'top',
- horizontalAlignment: 'center'
- },
- //argumentAxis: BWA.Chart.getTimeLineArgumentAxis(null, codeTimeType),
- commonSeriesSettings: {
- argumentField: 'DateTime',
- selectionStyle: {
- hatching: {
- direction: 'left'
- }
- }
- },
- valueAxis: [{
- title: {
- text: '소비전력량 (kWh)'
- }
- },
- {
- type: 'continuous',
- valueType: 'numeric',
- tickInterval: 10,
- valueMarginsEnabled: true,
- minValueMargin: 0,
- maxValueMargin: 0,
- min: -10,
- max: 40,
- position: 'right',
- name: 'temperature',
- label: {
- font: { color: '#c96374' },
- },
- title: {
- text: $G('outdoorTemperatureWithUnit')
- }
- }],
- series: [{
- type: 'bar',
- valueField: 'CV',
- //axis: 'Cold',
- name: '냉방소비전력',
- label: {
- visible: false,
- customizeText: function() {
- return this.valueText + 'kWh';
- }
- },
- point: { size: 8 }
- }, {
- type: 'bar',
- valueField: 'HV',
- //axis: 'Hot',
- name: '난방소비전력',
- label: {
- visible: false,
- customizeText: function() {
- return this.valueText + 'kWh';
- }
- },
- point: { size: 8 }
- },
- {
- type: 'spline',
- valueField: 'Value',
- axis: 'temperature',
- name: $G('outdoorTemperature'),
- label: {
- visible: false,
- customizeText: function () {
- return this.valueText + '°C';
- }
- },
- point: { size: 2 }
- }],
- 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,
- }
- }
- }
- };
- }
- });
|