forked from predixdesignsystem/px-vis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpx-vis-api-axis-x.html
57 lines (49 loc) · 1.83 KB
/
px-vis-api-axis-x.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
54
55
56
57
<!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-axis-x-demo.html">
</head>
<body>
<template id="just-for-demo" is="dom-bind">
<px-vis-demo-api
component-name="px-vis-axis"
description="{{description}}"
elemprop-line="{{elempropLine}}"
codepen-link="http://codepen.io/menkhakl/pen/bwYQZB"
>
<!--add demo tag-->
<px-vis-axis-x-demo></px-vis-axis-x-demo>
</px-vis-demo-api>
</template>
</body>
<script>
var template = document.querySelector('template[is=dom-bind]'),
elempropLine = {
"svg":"[[svg]]",
"axis":"[[x]]",
"margin":"[[margin]]",
"width":"[[width]]",
"height":"[[height]]",
"title":"myTitle",
"orientation":"bottom",
"labelPosition":"after",
"completeSeriesConfig":"[[seriesConfig]]",
"preventSeriesBar":"true",
"domainChanged":"[[domainChanged]]",
"currentDomain":"[[currentDomainX]]"
},
description = "Example of an axis drawing object. The axis drawing object can draw both x and y axis. This example draws an x-axis.";
template.elempropLine = elempropLine;
template.description = description;
</script>
</html>