Advertisement
Guest User

Untitled

a guest
Aug 2nd, 2016
111
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 1.08 KB | None
  1. <!doctype html>
  2. <html>
  3.   <head>
  4.     <title>d3spark-element demo</title>
  5.     <meta charset="utf-8">
  6.     <meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1, user-scalable=yes">
  7.     <script src="../../webcomponentsjs/webcomponents-lite.js"></script>
  8.  
  9.     <link rel="import" href="../../iron-demo-helpers/demo-pages-shared-styles.html">
  10.     <link rel="import" href="../../iron-demo-helpers/demo-snippet.html">
  11.  
  12.     <link rel="import" href="../../iron-ajax/iron-ajax.html">
  13.     <link rel="import" href="../d3spark-element.html">
  14.  
  15.     <style is="custom-style" include="demo-pages-shared-styles">
  16.     </style>
  17.   </head>
  18.   <body>
  19.     <div class="vertical-section-container centered">
  20.       <h3>Basic d3spark-element Demo</h3>
  21.       <demo-snippet>
  22.         <template>
  23.     <iron-ajax auto
  24.         url="/demo/d1.json"
  25.         handle-as="json"
  26.         last-response="{{myval}}"></iron-ajax>
  27.     <d3spark-element yleg="Watt" ymax="2000" values="{{myval}}"></d3spark-element>
  28.         </template>
  29.       </demo-snippet>
  30.     </div>
  31.  
  32.   </body>
  33. </html>
Advertisement
RAW Paste Data Copied
Advertisement