Skip to content

Commit 84d852d

Browse files
author
Niilo Keinänen
committed
Update examples
1 parent 60781dd commit 84d852d

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/index.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,4 @@
11
window.lcjsSmallView = window.devicePixelRatio >= 2
2-
if (!window.__lcjsDebugOverlay) {
3-
window.__lcjsDebugOverlay = document.createElement('div')
4-
window.__lcjsDebugOverlay.style.cssText = 'position:fixed;top:10px;left:10px;background:rgba(0,0,0,0.7);color:#fff;padding:4px 8px;z-index:99999;font:12px monospace;pointer-events:none'
5-
const attach = () => { if (document.body && !window.__lcjsDebugOverlay.parentNode) document.body.appendChild(window.__lcjsDebugOverlay) }
6-
attach()
7-
setInterval(() => {
8-
attach()
9-
window.__lcjsDebugOverlay.textContent = window.innerWidth + 'x' + window.innerHeight + ' dpr=' + window.devicePixelRatio + ' small=' + window.lcjsSmallView
10-
}, 500)
11-
}
122
/*
133
* LightningChartJS example showcasing the TimeTickStrategy feature which is ideal for displaying timestamp data between couple days all the way down to microseconds level.
144
*/

0 commit comments

Comments
 (0)