Advertisement
Guest User

Untitled

a guest
May 21st, 2015
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.37 KB | None | 0 0
  1.  
  2. <div class=''>
  3.     <div>
  4.         <div id='full-width' style=' outline:1px solid black; width:100%'>
  5.         </div>
  6.     </div>
  7.     <div>
  8.     <div class='data-column'><a href='data/fake_users1.json'>data</a></div>
  9.  
  10. <script>
  11. d3.json('data/brief-1.json', function(data) {
  12.     data = MG.convert.date(data, 'date');
  13.     console.log(d3.select('div#full-width').style('width'),'sdoifn');
  14.     MG.data_graphic({
  15.         title: "Linked Graphic",
  16.         description: "The two graphics in this section are linked together. A rollover in one causes a rollover in the other.",
  17.         data: data,
  18.         linked: true,
  19.         full_width: true,
  20.         height: 200,
  21.         right: 40,
  22.         xax_count: 4,
  23.         target: '#full-width'
  24.     });
  25.     console.log(d3.select('div#full-width svg').attr('width'));
  26. });
  27. </script>
  28.  
  29.  
  30. <pre><code class='javascript'>d3.json('data/fake_users1.json', function(data) {
  31.     data = MG.convert.date(data, 'date');
  32.     MG.data_graphic({
  33.         title: "Line Chart",
  34.         description: "This is a simple line chart. You can remove the area portion by adding <i>area: false</i> to the arguments list.",
  35.         data: data,
  36.         width: 600,
  37.         height: 200,
  38.         right: 40,
  39.         target: document.getElementById('fake_users1'),
  40.         x_accessor: 'date',
  41.         y_accessor: 'value'
  42.     });
  43. });</code>
  44. </pre>
  45.  
  46.     </div>
  47. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement