123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118 |
- $(function () {
- BWA.ChartOptions = BWA.ChartOptions || {};
- var A = BWA.ChartOptions.RefrigeratorAnalysis = BWA.ChartOptions.RefrigeratorAnalysis || {};
- var valueAxise2 = {
- //pane: 'topPane',
- name: 'eff',
- position: 'right',
- //valueMarginsEnabled: true,
- //minValueMargin: 0,
- //maxValueMargin: 0,
- //min: -20,
- //max: 40,
- label: {
- font: { color: '#00A7C6' },
- visible: true,
- //format: 'largeNumber'
- },
- title: {
- text: '효율 (%)'
- }
- }
- var series2 = {
- type: 'spline',
- color: '#00A7C6',
- //pane: 'topPane',
- axis: 'eff',
- valueField: 'eff',
- point: { size: 4 },
- //name: $G('outdoorTemperature'),
- label: {
- visible: false,
- font: { color: '#00A7C6', },
- customizeText: function () {
- return '효율 (%)';
- }
- }
- }
- /*
- C.getSeriesOptions = function (k) {
- return {
-
- };
- };*/
- A.getEFFSWChartOptions = function (codeTimeType) {
- return {
- palette: "Soft",
- legend: {
- visible: false
- },
- //argumentAxis: BWA.Chart.getTimeLineArgumentAxis(moment(), codeTimeType),
- commonSeriesSettings: {
- argumentField: "DateTime",
- argumentType: 'string',
- selectionStyle: {
- hatching: {
- direction: "left"
- }
- }
- },
- valueAxis: [{
- title: {
- text: '보급수 유량 (m3/h)'
- }
- //}].concat(valueAxise2),
- }],
- series: [{
- type: 'bar',
- valueField: 'sw',
- argumentField: 'DateTime',
- label: {
- visible: false,
- //customizeText: function() {
- // return this.argumentField + this.valueText;
- //}
- },
- point: { size: 8 }
- }].concat(series2),
- 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,
- }
- }
- }
- };
- };
- });
|