12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- $(function () {
- BWA.ChartOptions = BWA.ChartOptions || {};
- BWA.ChartOptions.EnthalpyControl = BWA.ChartOptions.EnthalpyControl || {};
- BWA.ChartOptions.EnthalpyControl.getChartControlEnthalpyOptions = 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: [{
- title: {
- text: '엔탈피(kJ/kg)'
- }
- },
- ],
- series: [{
- type: 'spline',
- name: '외기 엔탈피',
- argumentField: "DateTime",
- valueField: 'outdoorEnthalpy',
- label: {
- visible: false,
- },
- point: { size: 8 }
- }, {
- type: 'spline',
- name: '실내 엔탈피',
- argumentField: "DateTime",
- valueField: 'IndoorEnthalpy',
- label: {
- visible: false,
- },
- point: { size: 8 }
- },
- ],
- 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('')
- };
- }
- },
- crosshair: {
- enabled: true,
- width: 2,
- horizontalLine: {
- color: 'limegreen',
- dashStyle: 'solid',
- visible: false
- },
- verticalLine: {
- color: 'limegreen',
- dashStyle: 'solid'
- },
- label: {
- visible: true,
- backgroundColor: "#949494",
- font: {
- color: "#fff",
- size: 12,
- }
- }
- }
- };
- };
- });
|