123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151 |
- $(function () {
- BWA.ChartOptions = BWA.ChartOptions || {};
- BWA.ChartOptions.EnthalpyControl = BWA.ChartOptions.EnthalpyControl || {};
- BWA.ChartOptions.EnthalpyControl.getChartEtcOptions = function (codeTimeType) {
- return {
- palette: 'Bright',
- legend: {
- visible: true,
- verticalAlignment: 'top',
- horizontalAlignment: 'center'
- },
- //argumentAxis: BWA.Chart.getTimeLineArgumentAxis(null, codeTimeType),
- argumentAxis:
- {
- valueMarginsEnabled: false,
- argumentType: 'datetime',
- label: {
- alignment: 'center',
- format: 'HH시-mm분'
- },
- tickInterval: { minutes: 15 },
- },
- commonSeriesSettings: {
- argumentField: 'DateTime',
- selectionStyle: {
- hatching: {
- direction: 'left'
- }
- }
- },
- valueAxis: [
- {
- name: 'ppm',
- position: 'left',
- type: 'continuous',
- valueType: 'numeric',
- tickInterval: 10,
- label: {
- },
- title: {
- text: 'CO, CO2, OZONE(ppm)',
- },
- },
- {
- label: {
- },
- name: 'dust',
- position: 'right',
- title: {
- text: '미세먼지(㎍/㎥)',
- }
- }
- ],
- series: [
- {
- type: 'spline',
- valueField: 'Co',
- axis: 'ppm',
- visible: true,
- point: { size: 8 },
- name: 'CO',
- color: '#c96374',
- label: {
- visible: false,
- customizeText: function () {
- return this.valueText + ' °C';
- }
- }
- }, {
- type: 'spline',
- valueField: 'Co2',
- axis: 'ppm',
- point: { size: 8 },
- name: 'CO2',
- color: '#00A7C6',
- label: {
- visible: false,
- customizeText: function () {
- return this.valueText + ' %';
- }
- }
- },
- {
- type: 'spline',
- valueField: 'Dust',
- axis: 'dust',
- visible: true,
- point: { size: 8 },
- name: '미세먼지',
- label: {
- visible: false,
- customizeText: function () {
- return this.valueText + ' °C';
- }
- }
- }, {
- type: 'spline',
- valueField: 'Ozone',
- axis: 'ppm',
- point: { size: 8 },
- name: '오존',
- label: {
- visible: false,
- customizeText: function () {
- return this.valueText + ' %';
- }
- }
- }
- ],
- crosshair: {
- enabled: true,
- width: 2,
- horizontalLine: {
- color: 'limegreen',
- dashStyle: 'solid',
- visible: true
- },
- verticalLine: {
- color: 'limegreen',
- dashStyle: 'solid'
- },
- label: {
- visible: true,
- backgroundColor: "#949494",
- font: {
- color: "#fff",
- size: 12,
- }
- }
- },
- tooltip: {
- enabled: true,
- color: "#3e1717",
- format: 'fixedPoint',
- precision: 2,
- font: {
- color: "white",
- size: 12,
- weight: 600,
- },
- argumentFormat: 'shortDate',
- customizeText: function () {
- return {
- text: [this.argumentText, ': ', this.valueText].join('')
- };
- }
- }
- };
- };
- });
|