전체 글(1011)
-
Oracle 5분 단위로 시간을 집계하여 최대값 구하기
5분 단위로 데이터 분류SELECT TRUNC(DATE_COLUMN, 'MI') + (5 - MOD(TO_NUMBER(TO_CHAR(DATE_COLUMN, 'MI')), 5)) / (24 * 60) AS rounded_up_dateFROM YOUR_TABLE;5분 단위로 최대값 구하기SELECT TRUNC(DATE_COLUMN, 'MI') + (5 - MOD(TO_NUMBER(TO_CHAR(DATE_COLUMN, 'MI')), 5)) / (24 * 60) AS rounded_up_date, MAX(VALUE_COLUMN) AS max_valueFROM YOUR_TABLEGROUP BY TRUNC(DATE_COLUMN, 'MI') + (5 - MOD(TO_NUMBE..
2024.11.24 -
Sencha chart에서 확대 축소 처리
itemhighlight: Highlights individual data points when hovered over.panzoom: Enables zooming and panning using gestures or mouse.zoomOnPanGesture: Enables zooming via gestures like pinch zoom or scroll wheel.axes: Specifies which axes allow panning and zooming.crosszoom: Allows rectangular zooming by dragging over a specific area.zoomOnPanGesture: Disables zooming when dragging. i..
2024.11.24 -
Sencha layout item들이 수평으로 꽉차게 보이도록 처리
수평으로 item들이 보이도록 하려면, hbox 사용stretch를 사용해서 높이가 꽉차하게 함flex를 사용해서 넓이를 꽉차게 함Ext.onReady(function () { Ext.create('Ext.panel.Panel', { renderTo: Ext.getBody(), title: 'Panel with Items Stretching Horizontally', width: 600, height: 300, layout: { type: 'hbox', // Horizontal Box Layout align: 'stretch', // Stretch items to fill container heig..
2024.11.24 -
Javascript에서 null 체크 간단하게 하기
&&를 사용해서, 먼저 객체가 null이 아닐 경우, 객체의 opertation이 작동하도록 함 만약 interaction이 null이거나 undefined이면 false가 되고, 결과값은 null이 됨 undoButton = interaction && interaction.getUndoButton(),
2024.11.24 -
Sencha chart x축 글자 수직으로 표시하기
label의 rotate를 통해서 각도를 원하는 대로 조정할 수 있음 axes: [ { type: 'numeric', position: 'left', title: 'Value', grid: true, }, { type: 'category', position: 'bottom', title: 'Mo..
2024.11.24 -
Javascript 날짜 포멧 설정
const now = new Date();// Create a custom format: YYYY-MM-DD HH:mm:ssconst year = now.getFullYear();const month = (now.getMonth() + 1).toString().padStart(2, '0'); // Month is zero-basedconst day = now.getDate().toString().padStart(2, '0');const hours = now.getHours().toString().padStart(2, '0');const minutes = now.getMinutes().toString().padStart(2, '0');const seconds = now.getSeconds().toStrin..
2024.11.24