Use CSS for tests, gallery and docs
[dygraphs.git] / tests / temperature-sf-ny.html
index b5cfef1..a778d77 100644 (file)
@@ -1,6 +1,7 @@
 <!DOCTYPE html> 
 <html> 
   <head> 
+    <link rel="stylesheet" href="../css/dygraph.css">
     <title>Temperatures</title> 
     <!--
     For production (minified) code, use:
@@ -13,6 +14,9 @@
     #bordered {
       border: 1px solid red;
     }
+    .dygraph-legend {
+      text-align: right;
+    }
     </style> 
   </head> 
   <body> 
@@ -34,7 +38,6 @@
             title: 'Daily Temperatures in New York vs. San Francisco',
             ylabel: 'Temperature (F)',
             legend: 'always',
-            labelsDivStyles: { 'textAlign': 'right' }
           }
       );
       g2 = new Dygraph(
@@ -47,7 +50,6 @@
             title: 'Daily Temperatures in New York vs. San Francisco',
             ylabel: 'Temperature (F)',
             legend: 'always',
-            labelsDivStyles: { 'textAlign': 'right' }
           }
       );
     </script>