|
|
@ -4,7 +4,7 @@ |
|
|
|
<meta content="text/html;charset=utf-8" http-equiv="Content-Type"> |
|
|
|
<meta content="text/html;charset=utf-8" http-equiv="Content-Type"> |
|
|
|
<meta content="utf-8" http-equiv="encoding"> |
|
|
|
<meta content="utf-8" http-equiv="encoding"> |
|
|
|
|
|
|
|
|
|
|
|
<script src="./dist/example.js" type="text/javascript"></script> |
|
|
|
<script src="./dist/demo.js" type="text/javascript"></script> |
|
|
|
</head> |
|
|
|
</head> |
|
|
|
<body> |
|
|
|
<body> |
|
|
|
<div id="chart" style="width: 50%; height: 500px;"></div> |
|
|
|
<div id="chart" style="width: 50%; height: 500px;"></div> |
|
|
@ -21,11 +21,11 @@ |
|
|
|
x: { format: 'time' } |
|
|
|
x: { format: 'time' } |
|
|
|
}, |
|
|
|
}, |
|
|
|
zoomEvents: { |
|
|
|
zoomEvents: { |
|
|
|
mouse: { zoom: { isActive: false } }, |
|
|
|
mouse: { zoom: { isActive: false }, pan: { isActive: false } }, |
|
|
|
scroll: { zoom: { isActive: false } } |
|
|
|
scroll: { zoom: { isActive: false } } |
|
|
|
}, |
|
|
|
}, |
|
|
|
} |
|
|
|
} |
|
|
|
var pod = new ExamplePod( |
|
|
|
var pod = new DemoPod( |
|
|
|
document.getElementById('chart'), |
|
|
|
document.getElementById('chart'), |
|
|
|
[ |
|
|
|
[ |
|
|
|
{ target: 'test1', datapoints: data1, color: 'green' }, |
|
|
|
{ target: 'test1', datapoints: data1, color: 'green' }, |