Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
api:chart [2016/05/04 13:17] knutkohlapi:chart [2019/12/30 14:53] – [Chart URL for tomorrow] knutkohl
Line 5: Line 5:
 You can direct draw forecast estimate charts via API calls. You can direct draw forecast estimate charts via API calls.
  
-<fc #ff0000>The logic for the chart drawing URL is a bit different. In other calls you have to use your API key for calls. +//The logic for the chart drawing URL is a bit different. In other calls you have to use your API key for calls. 
-But the needed code snippet here is placed into a HTML page and the **API key should not be visible** for the public ;-)</fc>+But the needed code snippet here is placed into a HTML page and the **API key should not be visible** for the public ;-)//
  
 So the process of drawing a chart consists of 3 parts: So the process of drawing a chart consists of 3 parts:
Line 56: Line 56:
 <code> <code>
 <-- ---------------------------------------------------------------------- <-- ----------------------------------------------------------------------
- -- Init chart functions, required only once per page+ -- Init chart functions, required only ONCE per page
  -- ------------------------------------------------------------------ -->  -- ------------------------------------------------------------------ -->
-<script src="https://api.forecast.solar/chart/init.js"></script>+<script defer src="https://api.forecast.solar/chart/init.js"></script>
  
 <div style="text-align:center"> <div style="text-align:center">