forked from predixdesignsystem/px-vis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpx-vis-api-data-converter.html
50 lines (43 loc) · 1.63 KB
/
px-vis-api-data-converter.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
<!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-data-converter-demo.html">
</head>
<body>
<template id="just-for-demo" is="dom-bind">
<px-vis-demo-api
component-name="px-vis-data-converter"
description="{{description}}"
elemprop-line="{{elempropLine}}"
codepen-link="http://codepen.io/menkhakl/pen/XjVqBW"
>
<!--add demo tag-->
<px-vis-data-converter-demo></px-vis-data-converter-demo>
</px-vis-demo-api>
</template>
</body>
<script>
var template = document.querySelector('template[is=dom-bind]'),
elempropLine = {
"data-key":"series",
"id-key":"name",
"nameKey":"name",
"original-data":"[[originalData]]",
"series-config":"{{seriesConfig}}",
"chart-data":"{{chartData}}"
},
description = "Converts data from the timeseries service to the schema required by the vis framework.";
template.elempropLine = elempropLine;
template.description = description;
</script>
</html>