$(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, 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, //argumentType: 'numeric', 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.getSeriesOptions = function (fuelTypeId, goalUpperBound) { return { valueAxis: [$.extend({}, fuelTypeValueAxises[fuelTypeId - 1], { constantLines: [{ label: { text: $G('goalUpperBound') }, width: 2, value: goalUpperBound, color: '#ff4500', dashStyle: 'dash' }], showZero: true, })].concat(valueAxises), series: [fuelTypeSeries[fuelTypeId - 1]].concat(series), }; }; */ A.getCopChartOptions = function(codeTimeType) { return { palette: 'Default', 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('refrigeratorCop') } }, series: { type: 'bar', argumentField: "DateTime", valueField: 'Value', //valueField: 'Temperature', name: $G('refrigeratorCop'), 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, } } } }; }; });