123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177 |
- $(function() {
- BWA.ChartOptions = BWA.ChartOptions || {};
- var A = BWA.ChartOptions.RefrigeratorAnalysis = BWA.ChartOptions.RefrigeratorAnalysis || {};
- var valueAxises = [{
- pane: 'topPane',
- name: 'Temperature',
- position: 'right',
- //valueMarginsEnabled: true,
- //minValueMargin: 0,
- //maxValueMargin: 0,
- type: 'continuous',
- valueType: 'numeric',
- tickInterval: 10,
- valueMarginsEnabled: true,
- minValueMargin: 0,
- maxValueMargin: 0,
- //argumentType: 'numeric',
- min: -10,
- max: 40,
- label: {
- font: { color: '#c96374' },
- visible: true,
- //format: 'largeNumber'
- },
- title: {
- text: $G('outdoorTemperatureWithUnit')
- }
- }, {
- pane: 'topPane',
- name: 'humidity',
- tickInterval: 20,
- valueMarginsEnabled: true,
- minValueMargin: 0,
- maxValueMargin: 0,
- min: 0,
- max: 100,
- position: 'right',
- grid: {
- visible: true
- },
- label: {
- font: { color: '#00A7C6' },
- visible: true,
- //format: 'largeNumber'
- },
- title: {
- text: $G('outdoorHumidityWithUnit')
- }
- }];
- var seriesS = [{
- type: 'spline',
- color: '#c96374',
- pane: 'topPane',
- axis: 'Temperature',
- valueField: 'Temperature',
- point: { size: 2 },
- name: $G('outdoorTemperature'),
- label: {
- visible: false,
- font: { color: '#c96374', },
- customizeText: function () {
- return this.valueText + ' °C';
- }
- }
- }, {
- type: 'spline',
- pane: 'topPane',
- axis: 'humidity',
- color: '#00A7C6',
- valueField: 'Humidity',
- point: { size: 2 },
- name: $G('outdoorHumidity'),
- label: {
- font: { color: '#00A7C6', },
- visible: false,
- customizeText: function () {
- return this.valueText + ' %';
- }
- }
- }];
- A.getLoadRateChartOptions = function(codeTimeType) {
- return {
- palette: "Soft Pastel",
- legend: {
- visible: true,
- verticalAlignment: 'top',
- horizontalAlignment: 'center'
- },
- //argumentAxis: BWA.Chart.getTimeLineArgumentAxis(null, codeTimeType),
- // ㅎㅎ 이게 있어야 멀티드로잉이 된다. 2015 04 21
- commonSeriesSettings: {
- argumentField: "DateTime",
- selectionStyle: {
- hatching: {
- direction: "left"
- }
- }
- },
- valueAxis: {
- pane: 'topPane',
- position: 'left',
- label: {
- visible: true,
- //format: 'largeNumber'
- },
- title: {
- text: $G('loadRateWithUnit')
- }
- },
- series: {
- type: 'bar',
- valueField: 'Value',
- name: '부하율',
- argumentField: 'DateTime',
- label: {
- visible: false,
- //customizeText: function() {
- // return this.argumentField + this.valueText;
- //}
- },
- point: { size: 8 }
- },
- panes: [{
- name: 'topPane',
- border: {
- visible: false,
- left: false,
- right: false,
- top: false,
- color: 'gray'
- }
- }, ],
- defaultPane: "topPane",
- tooltip: {
- enabled: true,
- },
- crosshair: {
- enabled: true,
- width: 2,
- horizontalLine: {
- color: 'red',
- dashStyle: 'dash',
- visible: true
- },
- verticalLine: {
- color: 'red',
- dashStyle: 'dash',
- visible: true
- },
- label: {
- visible: true,
- backgroundColor: "#949494",
- font: {
- color: "#fff",
- size: 12,
- }
- }
- }
- };
- };
- });
|