forked from predixdesignsystem/px-vis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpx-vis-api-scatter.html
53 lines (46 loc) · 1.73 KB
/
px-vis-api-scatter.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>px-vis</title>
<!--<link rel="stylesheet" type="text/css" href="../css/px-vis-demo.css"/>-->
<!-- Import custom element. Note: see comment about relative paths to dependencies in the *.html file referenced below -->
<script src="../webcomponentsjs/webcomponents-lite.js"></script>
<link rel="import" href="../px-theme/px-theme-styles.html">
<style include="px-theme-styles" is="custom-style"></style>
<link rel="icon" href="favicon.ico" type="image/x-icon"/>
<link rel="import" href="demos/px-vis-demo-api.html">
<link rel="import" href="demos/px-vis-scatter-demo.html">
</head>
<body>
<template id="just-for-demo" is="dom-bind">
<px-vis-demo-api
component-name="px-vis-scatter"
description="{{description}}"
elemprop-line="{{elempropLine}}"
codepen-link="http://codepen.io/menkhakl/pen/GjOVvr"
>
<!--add demo tag-->
<px-vis-scatter-demo></px-vis-scatter-demo>
</px-vis-demo-api>
</template>
</body>
<script>
var template = document.querySelector('template[is=dom-bind]'),
elempropLine = {
"svg": "[[svg]]",
"seriesId": "mySeries",
"completeSeriesConfig": "[[seriesConfig]]",
"chartData": "[[chartData]]",
"x": "[[x]]",
"y": "[[y]]",
"currentDomainX": "[[currentDomainX]]",
"currentDomainY": "[[currentDomainY]]",
"domainChanged": "[[domainChanged]]"
},
description = "Example of a scatter drawing object. Very similar configuration to px-vis-line-svg.";
template.elempropLine = elempropLine;
template.description = description;
</script>
</html>