Compare commits
No commits in common. '88d6b2b24abbb0d33963bbe3f037521cf1c4d91e' and 'ee7a57685f667dcd2060ec994c6d3b596d198f2d' have entirely different histories.
88d6b2b24a
...
ee7a57685f
4 changed files with 7 additions and 66 deletions
@ -1,33 +0,0 @@ |
|||||||
<!DOCTYPE html> |
|
||||||
<html> |
|
||||||
<head> |
|
||||||
<meta content="text/html;charset=utf-8" http-equiv="Content-Type"> |
|
||||||
<meta content="utf-8" http-equiv="encoding"> |
|
||||||
<script src="../dist/index.dev.js" type="text/javascript"></script> |
|
||||||
</head> |
|
||||||
<body> |
|
||||||
<div id="chart" style="width: 50%; height: 500px;"></div> |
|
||||||
<script type="text/javascript"> |
|
||||||
const startTime = 1590590148; |
|
||||||
const data = Array.from( |
|
||||||
{ length: 20 }, |
|
||||||
(el, idx) => [startTime + idx * 10000, Math.floor(Math.random() * 30)] |
|
||||||
); |
|
||||||
let options = { |
|
||||||
renderLegend: false, usePanning: false, |
|
||||||
axis: { y: { range: [0, 50] } }, |
|
||||||
zoomEvents: { mouse: { |
|
||||||
zoom: { isActive: false }, |
|
||||||
pan: { isActive: false }, |
|
||||||
} }, |
|
||||||
eventsCallbacks: { mouseClick: console.log } |
|
||||||
} |
|
||||||
var pod = new LinePod( |
|
||||||
document.getElementById('chart'), |
|
||||||
[{ datapoints: data }], |
|
||||||
options |
|
||||||
); |
|
||||||
pod.render(); |
|
||||||
</script> |
|
||||||
</body> |
|
||||||
</html> |
|
Loading…
Reference in new issue